This action exports scoped vars and secrets.
It automtically replace unsupported variable characters of the action input export value with _ characters.
jobs:
example:
runs-on: ubuntu-latest
steps:
- uses: qoomon/actions--set-env@v1
with:
vars: ${{ toJson(vars) }}
# optional - prefer scoped variables over unscoped ones e.g.,
# PROD__MAGIC_NUMBER or MAGIC_NUMBER__PROD would be chosen over MAGIC_NUMBER
scope: PROD
export: |
MAGIC_NUMBER
- run: |
echo "$MAGIC_NUMBER"jobs:
example:
runs-on: ubuntu-latest
env:
MAGIC_NUMBER: ${{ vars[format('MAGIC_NUMBER__{0}', inputs.env )] }}
steps:
- run: |
echo "$MAGIC_NUMBER"- Trigger the Release workflow
- The workflow will create a new release with the given version and also move the related major version tag e.g.
v1to point to this new release
- The workflow will create a new release with the given version and also move the related major version tag e.g.