Skip to content

Commit 269ebe4

Browse files
authored
BRE-552 - Fix Actionlint findings (#282)
1 parent d7a86a6 commit 269ebe4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/build-wasm-internal.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ jobs:
2525

2626
- name: Set version (PR)
2727
if: ${{ github.event_name == 'pull_request' }}
28+
env:
29+
PR_HEAD_REF: "${{ github.event.pull_request.head.ref }}"
2830
run: |
29-
echo REF_NAME="${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV
31+
echo REF_NAME="$PR_HEAD_REF" >> $GITHUB_ENV
3032
echo SHA="${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
3133
3234
- name: Set env variables (Branch/Tag)

.github/workflows/publish-wasm-internal.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@ jobs:
4242
4343
- name: Version output
4444
id: version-output
45+
env:
46+
BRANCH: "${{ github.head_ref || github.ref_name }}"
4547
run: |
4648
if [ -z ${{ inputs.version }} ]; then
47-
BRANCH=${{ github.head_ref || github.ref_name }}
4849
VERSION=0.2.0-${BRANCH/\//-}.${{ github.run_number }}
4950
echo "version=$VERSION" >> $GITHUB_OUTPUT
5051
else

0 commit comments

Comments
 (0)