We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10c24cb commit ac7c3f9Copy full SHA for ac7c3f9
.github/workflows/checker.yml
@@ -3,18 +3,16 @@ on:
3
merge_group:
4
5
jobs:
6
- check_commit_message:
+ fail-on-x0..x5min:
7
runs-on: ubuntu-latest
8
steps:
9
- - uses: actions/checkout@v2
10
- run: |
11
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
+ minutes="$(date +%M)"
+ last_digit="${minutes: -1}"
+ test $last_digit -lt 6
+ exit $?
17
always_passing_job:
18
19
20
- - run: echo "evergreen"
+ - run: echo "evergreen"
file
@@ -0,0 +1 @@
1
+first
0 commit comments