From 09ef8b448331fbee38d3da1bd9ea5bd3a9527671 Mon Sep 17 00:00:00 2001 From: Jonas Franke Date: Sun, 19 Jan 2025 19:47:33 +0100 Subject: [PATCH] Update GitHub Actions workflow to commit formatted code with Prettier --- .github/workflows/format.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 9fdee12..9d594a1 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -26,9 +26,12 @@ jobs: run: bun format - name: Commit changes if any + env: + ACTIONS_PAT: ${{ secrets.FORMAT_PAT}} run: | git config --global user.name 'github-actions' git config --global user.email 'github-actions@github.com' + git remote set-url origin https://x-access-token:${{ secrets.FORMAT_PAT }}@github.com/${{ github.repository }}.git if [[ `git status --porcelain` ]]; then git add . git commit -m "Formatted code with Prettier"