Skip to content

Commit

Permalink
fixup! ci: added check for fixup commits
Browse files Browse the repository at this point in the history
ci: error in yaml
  • Loading branch information
frazarshad committed Aug 5, 2024
1 parent 6222cfc commit e8986b2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/check-fixup-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,8 @@ jobs:

- name: Check for fixup commits
id: fixup-commits
run: echo "FIXUP_COMMIT_COUNT=$(git rev-list "$BASE_SHA".."$HEAD_SHA" --grep="^fixup! " | wc -l)" >> $GITHUB_OUTPUT

- name: Output result
run: |
if [[ $FIXUP_COMMIT_COUNT -eq 0 ]]; then
if [[ $(git rev-list "$BASE_SHA".."$HEAD_SHA" --grep="^fixup! " | wc -l) -eq 0 ]]; then
echo "No fixup commits found in commit history"
else
echo "Fixup commits found in commit history"
Expand Down

0 comments on commit e8986b2

Please sign in to comment.