Skip to content

Commit

Permalink
correct test github action secret and variables
Browse files Browse the repository at this point in the history
  • Loading branch information
tgarciai committed Aug 8, 2023
1 parent 3773113 commit dbe7062
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/show-variables.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Show env variables

on: [push]

jobs:
mi-job:
runs-on: ubuntu-latest
environment: development

steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Use a secret
env:
MY_SECRET1: ${{ secrets.MY_SECRET }}
run: |
echo "secret value ${{ secrets.MY_SECRET }}"
- name: Use a variable
env:
MY_VAR1: ${{ env.MY_VAR }}
run: |
echo "variable value ${{ vars.MY_VAR }}"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ out/

### VS Code ###
.vscode/

.env

0 comments on commit dbe7062

Please sign in to comment.