Skip to content

Commit

Permalink
styler: don't error if there are no changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Rodrigues committed Jul 13, 2024
1 parent fb68140 commit ce97800
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/styler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,15 @@ jobs:
PR=$(gh pr list -S 'Style package' --json number --jq '.[0].number')
echo "PR_NUMBER=$PR" >> $GITHUB_ENV
- name: Push changes to style_pkg branch
- name: Configure user and check for changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "CI Robot"
git diff-index --quiet HEAD || echo "has_changes=true" >> $GITHUB_ENV
- name: Commit and push changes
if: env.has_changes == 'true'
run: |
git add .
git commit -m "Updated inst/extdata/default.nix"
git push origin master:style_pkg --force
Expand Down

0 comments on commit ce97800

Please sign in to comment.