Skip to content

Commit bacefb4

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/first-workflow.yml

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

1414
job2:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Ship it
1818
uses: mscoutermarsh/cowsays-action@master
1919
with:
20-
text: 'Ready for prod–ship it!'
20+
text: 'Ready for prod–ship it! ${{ env.MY_VAR }}'
2121
color: 'magenta'

0 commit comments

Comments
 (0)