Skip to content

Commit

Permalink
Update GitHub Actions workflow to commit formatted code with Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-blazer committed Jan 19, 2025
1 parent a274962 commit 09ef8b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 09ef8b4

Please sign in to comment.