Skip to content

Commit

Permalink
dont push
Browse files Browse the repository at this point in the history
  • Loading branch information
Edit-Mr committed Jul 26, 2024
1 parent e5065d8 commit 7e40002
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/prettier-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,14 @@ jobs:
if: ${{ failure() }}
run: npx prettier --write .
- name: Commit and Push changes (if needed)

if: ${{ steps.prettier.outcome == 'failure' }}
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git checkout -b prettier-fixes-${{ github.run_id }}
git add .
git commit -m 'fix: format code with Prettier'
git push --set-upstream origin prettier-fixes-${{ github.run_id }}
- name: Create Pull Request
if: ${{ failure() }}
Expand Down

0 comments on commit 7e40002

Please sign in to comment.