Skip to content

Commit a79359f

Browse files
committed
fail
1 parent 10c24cb commit a79359f

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/checker.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@ jobs:
66
check_commit_message:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
9+
- uses: actions/checkout@v4
1010
- run: |
1111
set -x
12-
COMMIT_MESSAGE=$(git log --format=%B -n 1 $GITHUB_SHA)
13-
if [[ $COMMIT_MESSAGE =~ fail ]]; then
14-
echo failing as required
15-
exit 1
16-
fi
12+
git log
13+
git show
14+
git log origin/main..
15+
git log origin/main.. | grep fail && exit 1
1716
always_passing_job:
1817
runs-on: ubuntu-latest
1918
steps:
20-
- run: echo "evergreen"
19+
- run: echo "evergreen"

file

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
first

0 commit comments

Comments
 (0)