Skip to content

Commit

Permalink
vars in environment
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavsinghal87 committed Feb 22, 2024
1 parent 5aa8c46 commit 8c91925
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
run: |
echo "ENV var from yaml env conf - 1" - $DB_NAME
echo "ENV var from yaml env conf - 2" - ${{env.DB_NAME}}
echo "ENV var from github environment settings" - ${{env.ENV_DB_NAME}}
echo "ENV var from github environment settings" - ${{vars.ENV_DB_NAME}}
test-env-secrets:
environment: test
runs-on: ubuntu-latest
steps:
- name: test secrets
run: echo "ENV secrets from github environment settings" - {{secrets.MY_SECRET}}
run: echo "ENV secrets from github environment settings" - ${{secrets.MY_SECRET}}

0 comments on commit 8c91925

Please sign in to comment.