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 22, 2025
1 parent ff7f286 commit a89c374
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/firmware.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,15 @@ jobs:
uses: actions/checkout@v4 # v4
with:
fetch-depth: 0
# This adds support for both `pull_request_target` and `push` events.
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Install build dependencies
run: |
sudo -E ./scripts/install_build_dependencies.sh
- name: build target ${{ matrix.target }}
id: compile
run: |
git checkout -b patched ${GITHUB_SHA}
git checkout -b patched ${{ github.event.pull_request.head.sha || github.sha }}
make BROKEN=1 GLUON_TARGETS=${{ matrix.target }} BUILD_NUMBER=${{ github.event.pull_request.number && format('pr{0}', github.event.pull_request.number) || github.run_id && format('run{0}', github.run_id) }} V=s
echo "status=success" >> $GITHUB_OUTPUT
- name: Upload firmware ${{ matrix.target }}
Expand Down

0 comments on commit a89c374

Please sign in to comment.