Writing a good condition in GitHub workflows
Conditions are used to control job or step execution and are defined by if YAML key like this:
jobs:
first-job:
if: ${{ github.event_name == 'workflow_dispatch' }} #<---- conditions
runs-on: ubuntu-latest
steps:
- name: Checkout
...
jurajsim.hashnode.dev3 min read