Skip to content

Commit

Permalink
passing now
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszachy committed Mar 4, 2024
1 parent 10691a0 commit 6fc4b98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@ on:
merge_group:

jobs:
check_commit_message:
fail-on-small-minutes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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
minutes="$(date +%M)"
last_digit="${minutes: -1}"
test $last_digit -lt 6
exit $?
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 6fc4b98

Please sign in to comment.