Skip to content

Commit

Permalink
update GITHUB_SHA ENV
Browse files Browse the repository at this point in the history
fixes #567
  • Loading branch information
T0biii authored Jan 21, 2025
1 parent ff7f286 commit f5b33fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/firmware.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ jobs:
- name: Install build dependencies
run: |
sudo -E ./scripts/install_build_dependencies.sh
- name: Update GITHUB_SHA env
run: |
if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then
GITHUB_SHA=$(cat $GITHUB_EVENT_PATH | jq -r .pull_request.head.sha) # GITHUB_SHA is the merge SHA, not the head commit SHA in a PR, replace it.
fi
- name: build target ${{ matrix.target }}
id: compile
run: |
Expand Down

0 comments on commit f5b33fb

Please sign in to comment.