Skip to content

Commit

Permalink
Update workflow dispatch configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertoPrevato committed Jan 16, 2024
1 parent aa8e7df commit 52ace47
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Main

on:
workflow_dispatch:
publish_artifacts:
description: 'Publish artifacts (Y|N)'
required: true
default: 'N'
release:
types: [published]
push:
Expand Down Expand Up @@ -221,7 +225,7 @@ jobs:
publish:
runs-on: ubuntu-latest
needs: [build, build-wheels]
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish_artifacts == 'Y')
steps:
- name: Download a distribution artifact
uses: actions/download-artifact@v4
Expand Down

0 comments on commit 52ace47

Please sign in to comment.