Skip to content

Commit 6c2f9a3

Browse files
committed
Avoiding useless execution of create-github-release & publish-to-pypi.yaml workflows for every commit on the main branch
1 parent 206760b commit 6c2f9a3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/create-github-release.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ permissions:
1515

1616
jobs:
1717
build_and_publish:
18+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1819
name: Create a GitHub release page
1920
runs-on: ubuntu-latest
2021
steps:

.github/workflows/publish-to-pypi.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ permissions:
1515

1616
jobs:
1717
build_and_publish:
18+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1819
name: Publish a new version
1920
runs-on: ubuntu-latest
2021
steps:

0 commit comments

Comments
 (0)