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