Skip to content

Instantly share code, notes, and snippets.

@vibou
Created September 2, 2019 12:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save vibou/6db71089aedc532c8325cf99433492b5 to your computer and use it in GitHub Desktop.
Save vibou/6db71089aedc532c8325cf99433492b5 to your computer and use it in GitHub Desktop.
jobs:
should_run:
name: should run the next job
runs-on: ubuntu-latest
steps:
- name: check if vb is the commiter
if: github.event.pusher.name != 'vibou'
run: exit 1 # the job fails if not vibou
perform_action:
name: should run the next job
runs-on: ubuntu-latest
needs: should_run
steps:
- name: execute job
run: echo "The commiter is vibou"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment