Skip to content

Commit

Permalink
fix: update concurrency group in release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mikita-sakalouski committed May 29, 2024
1 parent 773511e commit a516ece
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- completed

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
group: ${{ github.workflow }}-${{ github.event.workflow_run.event.pull_request.number || github.sha }}
cancel-in-progress: true

defaults:
Expand All @@ -23,7 +23,7 @@ env:
jobs:
publish-pypi:
name: Publish to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push' && startsWith(github.event.workflow_run.head_commit.message, 'refs/tags') }}
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit a516ece

Please sign in to comment.