File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ name: First Workflow
2
2
3
3
on :
4
4
workflow_dispatch :
5
-
5
+ env :
6
+ MY_VARIABLE : " Hello from workflow"
6
7
jobs :
7
8
job1 :
8
9
runs-on : ubuntu-latest
@@ -18,11 +19,11 @@ jobs:
18
19
needs : job1
19
20
steps :
20
21
- name : Echo phrase for job2
21
- run : echo "This is job2 and MY_VARIABLE is ${{ needs.job1.outputs .MY_VARIABLE }}"
22
+ run : echo "This is job2 and MY_VARIABLE is ${{ env .MY_VARIABLE }}"
22
23
env :
23
- MY_VARIABLE : ${{ needs.job1.outputs .MY_VARIABLE }}
24
+ MY_VARIABLE : ${{ env .MY_VARIABLE }}
24
25
- name : Cowsays
25
26
uses : mscoutermarsh/cowsays-action@master
26
27
with :
27
- text : ' Ready for prod--hsip it! and MY_VARIABLE is ${{ needs.job1.outputs .MY_VARIABLE }}'
28
+ text : ' Ready for prod--hsip it! and MY_VARIABLE is ${{ env .MY_VARIABLE }}'
28
29
color : ' magenta'
You can’t perform that action at this time.
0 commit comments