Skip to content

Commit 2ec845c

Browse files
committed
Ignore workflow requirement if event is not workflow_dispatch
1 parent 3d81682 commit 2ec845c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ on:
1212
- publishAndBuild
1313
required: true
1414
description: if buildSiteOnly, then only builds site. If publishAndBuild is selected, then publish to TestPyPi and Build.
15+
environment:
16+
type: environment
1517
release:
1618
types: [published]
1719

1820
jobs:
1921
publish:
20-
if: ${{ github.event.inputs.control == 'publishAndBuild'}}
22+
if: github.event_name != 'workflow_dispatch' || ${{ github.event.inputs.control == 'publishAndBuild'}}
2123
runs-on: ubuntu-latest
2224
environment:
2325
name: testpypi

0 commit comments

Comments
 (0)