Skip to content
Discussion options

You must be logged in to vote

If you're using a PAT you're responsible for guarding your workflows from unexpected runs.
For example, you can add a if-clause on the job level like this.

name: Deploy

on:
    push:

jobs:
    deploy:
        name: Deploy
        runs-on: ubuntu-latest
        # Run this job if the commit message is not equal to "Change version with bump2version"
        if: github.event.head_commit.message != 'Change version with bump2version'
        steps:
            - run: # Deploy code

See:

Replies: 3 comments 16 replies

Comment options

You must be logged in to vote
4 replies
@gogo2464
Comment options

@gogo2464
Comment options

@stefanzweifel
Comment options

@gogo2464
Comment options

Answer selected by stefanzweifel
Comment options

You must be logged in to vote
12 replies
@stefanzweifel
Comment options

@gogo2464
Comment options

@gogo2464
Comment options

@stefanzweifel
Comment options

@gogo2464
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants