From e8e20f119f988eedd851495c54ff5c04ae60cc52 Mon Sep 17 00:00:00 2001 From: David Pascual Date: Wed, 4 Oct 2023 16:09:23 +0200 Subject: [PATCH] chore(ci): Fix release workflow build step checking out wrong commit actions/checkout checks out the latest commit at the time of the workflow trigger, hence any commit done during the workflow is not included. Fixing this to checkout the actual latest (release) commit. Signed-off-by: David Pascual --- .github/workflows/test-and-release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test-and-release.yml b/.github/workflows/test-and-release.yml index 5d98547f..224a0da4 100644 --- a/.github/workflows/test-and-release.yml +++ b/.github/workflows/test-and-release.yml @@ -101,6 +101,10 @@ jobs: needs: [release] steps: - uses: actions/checkout@v4 + - name: Checkout latest release commit + run: | + git fetch + git checkout $(git rev-parse FETCH_HEAD) - name: Set up Python uses: actions/setup-python@v4 with: