env:
IS_PUSH: github.event_name == 'push'
jobs:
ci:
if: ${{ env.IS_PUSH }}
This returns an error: “Unrecognized named-value: ‘env’”
env:
IS_PUSH: github.event_name == 'push'
jobs:
ci:
steps:
- if: ${{ env.IS_PUSH }}
uses: mathieudutour/github-tag-action@v5
This works.
According to the GitHub Docs:
A map of environment variables that are available to all jobs and steps in the workflow.
What am I missing ?
Also what is the object name for the workflow context and is it accessible i.e. workflow.env.variable ?