Hi
Something like does doesn’t seem to work:
name: "Deploy"
on: deployment
jobs:
deployment:
name: "Deploy ${{ matrix.environment }} - ${{ github.ref }}"
if: matrix.environment == github.event.deployment.environment
runs-on: "ubuntu-latest"
strategy:
matrix:
environment:
- stage
- test
- production
steps:
...
This errors:
Your workflow file was invalid: The pipeline is not valid. .github/workflows/deploy.yml (Line: 8, Col: 9): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.environment == github.event.deployment.environment
This seems like it could be supported, since the substitution of matrix.environment in the job name works just fine, and also:
says:
> You can use any supported context and expression to create a conditional.
Which is clearly not the case.
Thanks