mirror of
https://github.com/jhuebert/MeshCore.git
synced 2026-12-03 19:04:19 +00:00
ci: build and tag the revision the release names
The version job recorded a source SHA and the release body, tag and per-target manifests all name it, but the build jobs checked out the branch. A push between those jobs would have shipped firmware from a newer revision than every one of them claimed — which is exactly the release-coverage claim the manifests exist to make honest. Both downstream checkouts now pin the recorded SHA, so the target list and the firmware come from the same tree the release describes.
This commit is contained in:
1 parent
e5d872a179
commit
6b6d293516
1 file changed
+7
-2
@@ -285,7 +285,9 @@ jobs:
|
||||
- name: Clone Repo
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
ref: ${{ needs.version.outputs.branch }}
|
||||
# the revision the release names, not the branch tip: the target list
|
||||
# must describe the same tree the firmware is built from
|
||||
ref: ${{ needs.version.outputs.source_sha }}
|
||||
|
||||
- name: Setup Build Environment
|
||||
uses: ./.github/actions/setup-build-environment
|
||||
@@ -347,7 +349,10 @@ jobs:
|
||||
- name: Clone Repo
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
ref: ${{ needs.version.outputs.branch }}
|
||||
# pinned, like the target list: if the branch moved after version
|
||||
# selection, the manifest, the release body and the tag would all name
|
||||
# a revision this job never built
|
||||
ref: ${{ needs.version.outputs.source_sha }}
|
||||
|
||||
- name: Setup Build Environment
|
||||
uses: ./.github/actions/setup-build-environment
|
||||
|
||||
Reference in new issue
Block a user