Created
August 21, 2021 06:38
-
-
Save information-security/a81d9563942dd00f07e65720013ecc16 to your computer and use it in GitHub Desktop.
Prevent Github actions from running a workflow when commit message starts with WIP:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Workflow | |
on: | |
push: | |
branches: [ dev ] | |
pull_request: | |
branches: [ dev ] | |
jobs: | |
build: | |
runs-on: self-hosted | |
if: "! startsWith(github.event.head_commit.message, 'WIP:')" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment