Skip to content

Commit

Permalink
test env secrets + vars
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavsinghal87 committed Feb 22, 2024
1 parent b060bef commit d19599a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,20 @@ on:
push:
branches:
- using-secrets
environment: test
env:
DB_NAME: "my-db"
jobs:
test-env-vars:
runs-on: ubuntu-latest
steps:
- name: test environment variables
run: echo "test ENV var" - $DB_NAME
run: |
echo "test ENV var" - $DB_NAME
echo "test ENV var" - ${{env.DB_NAME}}
echo "test ENV var" - ${{env.ENV_DB_NAME}}
test-env-secrets:
runs-on: ubuntu-latest
steps:
- name: test secrets
run: echo "test env secrets"
run: echo "test env secrets" - {{secrets.MY_SECRET}}

0 comments on commit d19599a

Please sign in to comment.