There was an error while loading. Please reload this page.
1 parent 242909f commit b021ea3Copy full SHA for b021ea3
1 file changed
.github/workflows/notify-on-push.yml
@@ -32,6 +32,9 @@ jobs:
32
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
33
34
validateCommitMessage:
35
+ # If a commit is force-pushed out of the main branch, the `commits` array is
36
+ # empty and there are no checks to run.
37
+ if: github.event.commits[0]
38
name: Notify on Push on `main` with invalid message
39
# cannot use ubuntu-slim here because rtCamp/action-slack-notify is dockerized
40
runs-on: ubuntu-24.04-arm
0 commit comments