ci: Fix commit hash related issues

This commit is contained in:
Pun Butrach 2025-02-14 21:22:42 +07:00 committed by GitHub
parent 5c58f624de
commit b4e5c66f9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,7 +85,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Prepare comment - name: Prepare comment
id: prepare-comment # Added ID for accessing outputs id: prepare-comment # This should work now?
run: | run: |
COMMIT_HASH=$(git rev-parse --short HEAD) COMMIT_HASH=$(git rev-parse --short HEAD)
if [[ "${{ steps.flutter-build.outcome }}" == "success" ]]; then if [[ "${{ steps.flutter-build.outcome }}" == "success" ]]; then
@ -93,7 +93,6 @@ jobs:
else else
MESSAGE="🚫 Failed build on $COMMIT_HASH." MESSAGE="🚫 Failed build on $COMMIT_HASH."
fi fi
echo "MESSAGE=$MESSAGE" >> $GITHUB_OUTPUT
- name: "Comment on pull request #${{ inputs.pr-number }}" - name: "Comment on pull request #${{ inputs.pr-number }}"
uses: thollander/actions-comment-pull-request@v3 uses: thollander/actions-comment-pull-request@v3