name: if-context evaluation (FP — engine, not shell) on: pull_request_target: branches: [main] jobs: conditional: runs-on: ubuntu-latest if: ${{ startsWith(github.head_ref, 'release/') }} steps: - name: Run only on release branches run: echo "release branch detected"