Skip to content

Commit 6fc4b98

Browse files
committed
passing now
1 parent 10691a0 commit 6fc4b98

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.github/workflows/checker.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,16 @@ on:
33
merge_group:
44

55
jobs:
6-
check_commit_message:
6+
fail-on-small-minutes:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
109
- run: |
1110
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
11+
minutes="$(date +%M)"
12+
last_digit="${minutes: -1}"
13+
test $last_digit -lt 6
14+
exit $?
1715
always_passing_job:
1816
runs-on: ubuntu-latest
1917
steps:
20-
- run: echo "evergreen"
18+
- 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)