Skip to content

Commit

Permalink
ci(repo): commit formatting changes in PR
Browse files Browse the repository at this point in the history
Commit to the PR branch any automated changes
  • Loading branch information
jwulf committed Dec 18, 2023
1 parent e3d3dda commit 122635e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,14 @@ jobs:
run: |
git config --global user.name 'GitHub Action'
git config --global user.email '[email protected]'
# Check out the branch
git fetch
git checkout ${{ github.head_ref }}
# Add, commit, and push changes
git add -A
git diff --staged --quiet || git commit -m "Apply Prettier formatting"
git push
git push origin ${{ github.head_ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 122635e

Please sign in to comment.