Skip to content

Commit

Permalink
actions: Stop when linting fixes and not master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
taoky committed Sep 4, 2024
1 parent f64c803 commit 20ae175
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ jobs:
docs/**/*.md
README.md
- name: Stop and report errors if not master
if: github.ref != 'refs/heads/master'
run: |
git add -A
if ! git diff-index --quiet --cached HEAD --; then
echo "Stop."
exit 1
fi
- name: Determine if a PR should be submitted
if: github.ref == 'refs/heads/master'
id: file_changes
Expand Down

0 comments on commit 20ae175

Please sign in to comment.