I’m trying to configure my .config-ci.yml so that certain jobs run when commits are made on specific branches. For example, I would like “dev-job” to run when I commit to the “development” branch. What would be the best way to accomplish this? Would something like the following work:
stages: - dev dev-job: stage: dev only: - if: $CI_COMMIT_BRANCH == 'development script: - echo "This runs when a commit is made in the 'development' branch."