Skip to content

Commit 7a82432

Browse files
env var in other steps
1 parent d0ce29c commit 7a82432

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: "Workflow Commands"
22

3-
on:
4-
push:
5-
branches: [ main ]
3+
on: ['push']
64

75
jobs:
86
my-job:
@@ -12,4 +10,11 @@ jobs:
1210
run: |
1311
echo "::group::My Group Message"
1412
echo "Msg1"
15-
echo "::endgroup::"
13+
echo "Msg2"
14+
echo "::endgroup::"
15+
- name: "step 1"
16+
run: |
17+
echo "MY_VAL=hello" >> $GITHUB_ENV"
18+
- name: "step 2"
19+
run: |
20+
echo $MY_VAL"

0 commit comments

Comments
 (0)