Skip to content

Instantly share code, notes, and snippets.

@EmranAhmed
Created October 24, 2024 09:01
Show Gist options
  • Save EmranAhmed/3634fabf10a5d24e241ed03e67ca6454 to your computer and use it in GitHub Desktop.
Save EmranAhmed/3634fabf10a5d24e241ed03e67ca6454 to your computer and use it in GitHub Desktop.
Skip GitHub Actions on specific commits messages

Example One.

jobs:
  build:
    name: Build ${{ matrix.os }} - Bash
    runs-on: ${{ matrix.os }}
    if: ${{ !contains(github.event.head_commit.message, '#docs') }}

Example Two.

jobs:
  format:
    runs-on: ubuntu-latest
    if: "! contains(github.event.head_commit.message, 'wip')"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment