From 57365242aa7fdb67a3612bfe1b0e51f8f9f1f4e3 Mon Sep 17 00:00:00 2001 From: Arth Parikshit Patel Date: Mon, 1 Jun 2026 09:08:00 +0530 Subject: [PATCH] CI: Query base.ref instead of sha for milestone VERSION resolution --- .github/workflows/milestones.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/milestones.yml b/.github/workflows/milestones.yml index 41831313c2b..5f4c51cdf6d 100644 --- a/.github/workflows/milestones.yml +++ b/.github/workflows/milestones.yml @@ -47,12 +47,13 @@ jobs: gh api \ -H "Accept: application/vnd.github.raw" \ -H "X-GitHub-Api-Version: 2022-11-28" \ - "/repos/{owner}/{repo}/contents/include/VERSION?ref=${{ github.sha }}" + "/repos/{owner}/{repo}/contents/include/VERSION?ref=${MERGE_SHA}" echo "EOF" } >> "${GITHUB_OUTPUT}" env: GH_TOKEN: ${{ github.token }} GH_REPO: ${{ github.repository }} + MERGE_SHA: ${{ github.event.pull_request.merge_commit_sha }} - name: Show version file if: ${{ !steps.current-milestone.outputs.milestone }} run: echo "${VERSIONFILE}"