Skip to content

Commit

Permalink
fail
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszachy committed Mar 1, 2024
1 parent 10c24cb commit a79359f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ jobs:
check_commit_message:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: |
set -x
COMMIT_MESSAGE=$(git log --format=%B -n 1 $GITHUB_SHA)
if [[ $COMMIT_MESSAGE =~ fail ]]; then
echo failing as required
exit 1
fi
git log
git show
git log origin/main..
git log origin/main.. | grep fail && exit 1
always_passing_job:
runs-on: ubuntu-latest
steps:
- run: echo "evergreen"
- run: echo "evergreen"
1 change: 1 addition & 0 deletions file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
first

0 comments on commit a79359f

Please sign in to comment.