Skip to content

Commit acb2672

Browse files
committed
Add pypi publish skipping option
1 parent 7896f72 commit acb2672

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/release-python.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ on:
1515
required: false
1616
default: 'main'
1717
type: string
18+
skip_pypi:
19+
description: 'Skip PyPI publishing'
20+
required: false
21+
default: false
22+
type: boolean
1823

1924
concurrency:
2025
group: release-python-interpreter
@@ -122,6 +127,7 @@ jobs:
122127
needs: [validate, test, docker]
123128
if: >-
124129
!cancelled()
130+
&& !inputs.skip_pypi
125131
&& needs.validate.result == 'success'
126132
&& needs.test.result == 'success'
127133
&& (needs.docker.result == 'success'
@@ -190,7 +196,8 @@ jobs:
190196
if: >-
191197
!cancelled()
192198
&& needs.validate.result == 'success'
193-
&& needs.pypi-publish.result == 'success'
199+
&& (needs.pypi-publish.result == 'success'
200+
|| needs.pypi-publish.result == 'skipped')
194201
&& (needs.docker.result == 'success'
195202
|| needs.docker.result == 'skipped')
196203
uses: ./.github/workflows/release-finalize.yml

0 commit comments

Comments
 (0)