Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(ci): pin release-app builds to the triggering commit, not the branch tip

Louis Beaumonte5f482c2e60e
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index 091570f91..fade89817 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -141,7 +141,11 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
- ref: ${{ github.event.inputs.commit_hash || github.ref }}
+ # Pin to the triggering SHA (github.sha), not the branch ref: main
+ # keeps moving while builds queue/run, so a branch ref lets platforms
+ # check out different code (and re-runs pick up commits that were
+ # never in the release). The published tag points at the bump commit.
+ ref: ${{ github.event.inputs.commit_hash || github.sha }}
- name: Update version in Cargo.toml
if: github.event.inputs.commit_hash && github.event.inputs.version
@@ -235,7 +239,11 @@ jobs:
- uses: actions/checkout@v4
with:
- ref: ${{ github.event.inputs.commit_hash || github.ref }}
+ # Pin to the triggering SHA (github.sha), not the branch ref: main
+ # keeps moving while builds queue/run, so a branch ref lets platforms
+ # check out different code (and re-runs pick up commits that were
+ # never in the release). The published tag points at the bump commit.
+ ref: ${{ github.event.inputs.commit_hash || github.sha }}
- name: Shorten target dir to avoid MAX_PATH (Windows)
if: matrix.os_type == 'windows'