Skip to content

Commit 408095a

Browse files
Fix shell quoting in workflow-command.yml steps
1 parent 7a82432 commit 408095a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/workflow-command.yml

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

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

57
jobs:
68
my-job:
@@ -14,7 +16,7 @@ jobs:
1416
echo "::endgroup::"
1517
- name: "step 1"
1618
run: |
17-
echo "MY_VAL=hello" >> $GITHUB_ENV"
19+
echo "MY_VAL=hello" >> "$GITHUB_ENV"
1820
- name: "step 2"
1921
run: |
20-
echo $MY_VAL"
22+
echo "$MY_VAL"

0 commit comments

Comments
 (0)