Skip to content

Commit d14082d

Browse files
committed
Improve merge action
1 parent ba69706 commit d14082d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/merge.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ jobs:
6969
name: Build and publish Python 🐍 distributions 📦 to PyPI
7070
runs-on: ubuntu-latest
7171
needs: prepare
72+
# Only trigger on merges, not just closes
73+
if: github.event.pull_request.merged == true
7274
steps:
7375
- name: Check out committed code
7476
uses: actions/checkout@main
@@ -99,5 +101,4 @@ jobs:
99101
uses: pypa/gh-action-pypi-publish@master
100102
with:
101103
password: ${{ secrets.pypi_token }}
102-
repository_url: https://pypi.org/legacy/
103104
skip_existing: true

0 commit comments

Comments
 (0)