Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Bharathkumarraju/0ad810779d02f81398322932fc953091 to your computer and use it in GitHub Desktop.
Save Bharathkumarraju/0ad810779d02f81398322932fc953091 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