Skip to content

Commit

Permalink
ci: find the sha before the wait step
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuef committed Oct 19, 2023
1 parent aa93ce9 commit 95ab365
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/version_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,15 @@ jobs:
!startsWith(github.event.head_commit.message, 'chore(release):')
runs-on: ubuntu-22.04
steps:
- 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")"
- name: Wait for release workflow to complete
uses: fountainhead/[email protected]
id: wait-for-release
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: git log --grep='chore(release):' -n 1 --pretty=format:"%H"
ref: ${{ steps.get-sha.outputs.sha }}
checkName: release
timeoutSeconds: 3600 # 1 hour

Expand Down

0 comments on commit 95ab365

Please sign in to comment.