Test1 on PR #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test vars, secrets - test 1 | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
env: | |
# Setting an environment variable with the value of a configuration variable | |
REGISTRY_ORG_VAR: ${{ vars.QUAY_ORG }} | |
REGISTRY_ORG_SECRET: ${{ secrets.QUAY_ORG }} | |
jobs: | |
display-variables: | |
name: show-variables-secrets | |
runs-on: ubuntu-latest | |
steps: | |
- name: Use variables | |
run: | | |
echo "Registry org variable: $REGISTRY_ORG_VAR" | |
echo "Registry org secret: $REGISTRY_ORG_SECRET" | |
echo "Env var set from workflow env var: ${{ env.VAR1 }}" | |
echo "Env var set from workflow env secret: ${{ env.SECRET1 }}" | |
env: | |
VAR1: $REGISTRY_ORG_VAR | |
SECRET1: $REGISTRY_ORG_SECRET |