From c0ef37c46a7d59246b933afb992abe3a0c85808e Mon Sep 17 00:00:00 2001 From: Serene-Arc <33189705+Serene-Arc@users.noreply.github.com> Date: Sat, 1 Jun 2024 14:46:18 +1000 Subject: [PATCH] Fix error with build workflow using wrong ref Looking at the logs, it's using the ref before the one that increments the version in the previous action in the workflow. This code is from https://github.com/actions/checkout/issues/439#issuecomment-965968956 and supposedly fixes this by making it pull specifically from master, rather than the ref that the workflow was called on. --- .github/workflows/make_release.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/make_release.yaml b/.github/workflows/make_release.yaml index 9e24e1b9c..0fa54b301 100644 --- a/.github/workflows/make_release.yaml +++ b/.github/workflows/make_release.yaml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: version: - description: 'Version of the new release' + description: 'Version of the new release, just as a number with no prepended "v"' required: true jobs: @@ -32,6 +32,9 @@ jobs: needs: increment_version steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 + ref: master - name: Set up Python uses: actions/setup-python@v4 with: