Skip to content

Commit 0d9517f

Browse files
author
Raffaele Marcello
committed
Update first workflow to include secret variable and environment variable
1 parent bacefb4 commit 0d9517f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/first-workflow.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Echo Job 1
12-
run: echo "This is job 1 \n SECRET=${{ secrets.MY_SECRET_VAR }}"
12+
env:
13+
MY_SECRET_VAR: ${{ secrets.MY_SECRET_VAR }}
14+
run: echo $MY_SECRET_VAR
1315

1416
job2:
1517
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)