Skip to content

Instantly share code, notes, and snippets.

@information-security
Created August 21, 2021 06:38
Show Gist options
  • Save information-security/a81d9563942dd00f07e65720013ecc16 to your computer and use it in GitHub Desktop.
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:
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