From fc5f32fedb540b19bd3f983cc52e9663340f4750 Mon Sep 17 00:00:00 2001 From: Josh Wilson Date: Thu, 19 Oct 2023 16:06:12 +0200 Subject: [PATCH] ci: pull repo before we try and get a git hash --- .github/workflows/version_bump.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/version_bump.yml b/.github/workflows/version_bump.yml index fc73ed0f74..47fd2ec3e7 100644 --- a/.github/workflows/version_bump.yml +++ b/.github/workflows/version_bump.yml @@ -20,6 +20,10 @@ jobs: !startsWith(github.event.head_commit.message, 'chore(release):') runs-on: ubuntu-22.04 steps: + - uses: actions/checkout@v3 + with: + fetch-depth: "0" + token: ${{ secrets.VERSION_BUMP_COMMIT_PAT }} - name: Get the SHA of the last release commit id: get-sha run: echo "::set-output name=sha::$(git log --grep='chore(release):' -n 1 --pretty=format:"%H")" @@ -32,10 +36,6 @@ jobs: checkName: release timeoutSeconds: 3600 # 1 hour - - uses: actions/checkout@v3 - with: - fetch-depth: "0" - token: ${{ secrets.VERSION_BUMP_COMMIT_PAT }} - uses: actions-rs/toolchain@v1 with: profile: minimal