Skip to content

Commit 8512ff0

Browse files
committed
Fix small error.
1 parent de35b1c commit 8512ff0

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,14 @@ jobs:
2121
id: set_commit_ref
2222
run: |
2323
if [[ "${{ github.event_name }}" == "push" ]]; then
24-
echo "commit_ref=${{ github.sha }}" >> $GITHUB_OUTPUT
24+
COMMIT_REF=${{ github.sha }}
2525
else
26-
echo "commit_ref=${{ github.event.pull_request.head.sha }}" >> $GITHUB_OUTPUT
26+
COMMIT_REF=${{ github.event.pull_request.head.sha }}
27+
fi
28+
echo "COMMIT_REF=$COMMIT_REF" >> $GITHUB_OUTPUT
29+
30+
# Set a simple output to confirm the value
31+
echo "EVENT: ${{ github.event_name }}, COMMIT_REF=$COMMIT_REF"
2732
2833
# Build the code (minimal secrets here)
2934
build:
@@ -32,7 +37,7 @@ jobs:
3237
uses: ./.github/workflows/build.yml
3338
with:
3439
debug_build: ${{ github.event_name == 'pull_request_target' || github.event_name == 'pull_request' }}
35-
commit_ref: ${{ needs.commit_reference.outputs.commit_ref }}
40+
commit_ref: ${{ needs.commit_reference.outputs.COMMIT_REF }}
3641
secrets:
3742
RELEASE_KEYSTORE: ${{ secrets.RELEASE_KEYSTORE }}
3843
RELEASE_KEYSTORE_PASSWORD: ${{ secrets.RELEASE_KEYSTORE_PASSWORD }}

0 commit comments

Comments
 (0)