Skip to content

Commit 018037b

Browse files
authored
Use env vars in GH action run commands (#5485)
1 parent 701b301 commit 018037b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/release-comment-issues.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ jobs:
1717
steps:
1818
- name: Get version
1919
id: get_version
20-
run: echo "version=${{ github.event.inputs.version || github.event.release.tag_name }}" >> $GITHUB_OUTPUT
20+
run: echo "version=${VERSION}" >> $GITHUB_OUTPUT
21+
env:
22+
VERSION: ${{ github.event.inputs.version || github.event.release.tag_name }}
2123

2224
- name: Comment on linked issues that are mentioned in release
2325
if: |

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,9 @@ jobs:
276276
277277
# update-package-sha.sh uses this env variable to update Package.swift.
278278
# During release Craft calls bump.sh that uses update-package-sha.sh.
279-
- run: export GITHUB_RUN_ID=${{ github.run_id }}
279+
- run: export GITHUB_RUN_ID="$GITHUB_RUN_ID"
280+
env:
281+
GITHUB_RUN_ID: ${{ github.run_id }}
280282

281283
- name: Prepare release
282284
uses: getsentry/action-prepare-release@v1

0 commit comments

Comments
 (0)