Skip to content

Commit b2cd96e

Browse files
authored
Merge pull request #6 from tim4431/copilot/configure-pypi-publish-condition
Gate PyPI publish on `v`-prefixed commit messages
2 parents 86d6d52 + 962b3db commit b2cd96e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/python-publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This workflow will upload a Python Package to PyPI on every commit to main
1+
# This workflow will upload a Python Package to PyPI when commits to main start with "v"
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
33

44
# This workflow uses actions that are not certified by GitHub.
@@ -18,6 +18,7 @@ permissions:
1818

1919
jobs:
2020
release-build:
21+
if: startsWith(github.event.head_commit.message, 'v')
2122
runs-on: ubuntu-latest
2223

2324
steps:

0 commit comments

Comments
 (0)