Skip to content

Commit

Permalink
add some checks
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszachy committed Feb 20, 2024
1 parent 6fbc2e7 commit 741040c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
on:
pull_request:

jobs:
check_commit_message:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
COMMIT_MESSAGE=$(git log --format=%B -n 1 $GITHUB_SHA)
if [[ $COMMIT_MESSAGE =~ fail ]]; then
echo failing as required
exit 1
fi
always_passing_job:
runs-on: ubuntu-latest
steps:
- run: echo "evergreen"

0 comments on commit 741040c

Please sign in to comment.