Skip to content

Commit 4caa840

Browse files
authored
Merge pull request #107 from Integration-Automation/dev
fix: restrict PyPI publish to push events on main
2 parents faf2937 + 5330e8e commit 4caa840

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/publish-pypi.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ jobs:
1616
# gate strictly on the main branch and check out the exact commit
1717
# that passed CI, avoiding any race with a later push to main and
1818
# ensuring no fork-originated ref is ever materialised here.
19+
# Restrict to `push` events so scheduled CI runs do not publish.
1920
if: >-
2021
${{ github.event.workflow_run.conclusion == 'success'
2122
&& github.event.workflow_run.head_branch == 'main'
22-
&& github.event.workflow_run.event != 'pull_request' }}
23+
&& github.event.workflow_run.event == 'push' }}
2324
runs-on: ubuntu-latest
2425

2526
steps:

0 commit comments

Comments
 (0)