Skip to content

Commit

Permalink
ci: pull repo before we try and get a git hash
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuef committed Oct 19, 2023
1 parent 95ab365 commit fc5f32f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/version_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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")"
Expand All @@ -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
Expand Down

0 comments on commit fc5f32f

Please sign in to comment.