Skip to content

Commit 8d4130e

Browse files
Baltolirv-auditor
andauthored
Fix usage of github PR SHA in release job (#1041)
This was an oversight when refactoring the release workflow code last week; it's not easy to test this step without creating spurious PRs on the K repo so it got missed. It being missed produced a [failure](https://github.com/runtimeverification/k/actions/runs/8943558614/job/24594103312?pr=4312) in the LLVM backend update job. The fix is to send the correct version information from the stashed version file to the devops job, rather than the Git SHA as we were previously doing. --------- Co-authored-by: devops <[email protected]>
1 parent 05c38eb commit 8d4130e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ jobs:
9292
GITHUB_TOKEN: ${{ secrets.JENKINS_GITHUB_PAT }}
9393
run: |
9494
set -x
95-
version="${GITHUB_SHA}"
95+
VERSION=$(cat package/version)
9696
curl --fail \
9797
-X POST \
9898
-H "Accept: application/vnd.github+json" \
9999
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
100100
-H "X-GitHub-Api-Version: 2022-11-28" \
101101
https://api.github.com/repos/runtimeverification/devops/dispatches \
102-
-d '{"event_type":"on-demand-test","client_payload":{"repo":"runtimeverification/llvm-backend","version":"'${version}'"}}'
102+
-d '{"event_type":"on-demand-test","client_payload":{"repo":"runtimeverification/llvm-backend","version":"'${VERSION}'"}}'

package/debian/changelog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
k-llvm-backend (0.1.4) unstable; urgency=medium
1+
k-llvm-backend (0.1.5) unstable; urgency=medium
22

33
* Initial release
44

package/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.4
1+
0.1.5

0 commit comments

Comments
 (0)