Describe the bug
Use of env in job conditionals causes an invalid config. Cross posting this from nektos/act#720
Expected behaviour
GitHub Actions should not error regarding ${{ !env.ACT }}
Actual behaviour
GitHub Actions says workflow is not valid because of ${{ !env.ACT }}
The workflow is not valid. .github/workflows/deploy.yml (Line: 11, Col: 13): Unrecognized named-value: 'env'. Located at position 2 within expression: !env.ACT
Workflow and/or repository
Erroring Workflow
workflow
name: Deploy
on:
push:
branches:
- release
# run for every pull request
pull_request: {}
jobs:
deploy:
name: Deploy
if: ${{ !env.ACT }} # skip during local actions testing
runs-on: ubuntu-latest
strategy:
matrix:
node: [12]
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
useLockFile: false
- name: Deploy
run: npx semantic-release@15
Describe the bug
Use of
envin job conditionals causes an invalid config. Cross posting this from nektos/act#720Expected behaviour
GitHub Actions should not error regarding
${{ !env.ACT }}Actual behaviour
GitHub Actions says workflow is not valid because of
${{ !env.ACT }}Workflow and/or repository
Erroring Workflow
workflow