Skip to content

Commit c425ffd

Browse files
committed
ci: add workflow_dispatch trigger to release.yml
Allows manually triggering the publish workflow via gh workflow run, useful for retrying failed dev auto-publish runs without requiring a new dev push. Job's if condition extended to allow workflow_dispatch invocations.
1 parent 2b68e7d commit c425ffd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- main
77
- dev
8+
workflow_dispatch:
89

910
concurrency: publishing
1011

@@ -13,7 +14,8 @@ jobs:
1314
name: Publish new release to PyPI
1415
runs-on: SFDO-Tooling-Ubuntu
1516
if: >-
16-
(github.ref_name == 'main' && contains(github.event.head_commit.modified, 'cumulusci/__about__.py'))
17+
(github.event_name == 'workflow_dispatch')
18+
|| (github.ref_name == 'main' && contains(github.event.head_commit.modified, 'cumulusci/__about__.py'))
1719
|| (github.ref_name == 'dev' && github.actor != 'github-actions[bot]')
1820
steps:
1921
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)