Using conditions to control job execution in Workflows

PHOTO EMBED

Tue Sep 20 2022 20:56:22 GMT+0000 (Coordinated Universal Time)

Saved by @jmbenedetto #yaml

name: example-workflow
  on: [push]
  jobs:
    production-deploy:
      if: github.repository == 'octo-org/octo-repo-prod'
      runs-on: ubuntu-latest
      steps:
        - uses: actions/checkout@v3
        - uses: actions/setup-node@v3
          with:
            node-version: '14'
- run: npm install -g bats
content_copyCOPY

https://docs.github.com/en/actions/using-jobs/using-conditions-to-control-job-execution