Skip to content

Commit 33a15e3

Browse files
committed
Add push trigger to release-publish for workflow registration
GitHub only registers workflow_dispatch workflows once they appear on a branch via push. Adding a temporary push trigger for the branch. All jobs are skipped on push (only run on workflow_dispatch). Co-authored-by: Isaac
1 parent 69f5b82 commit 33a15e3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/release-publish.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: release-publish
22

33
on:
4+
# Push trigger for testing on this branch. Remove before merging.
5+
push:
6+
branches:
7+
- "split-release-workflows"
8+
49
workflow_dispatch:
510
inputs:
611
build_run_id:
@@ -23,7 +28,9 @@ env:
2328
jobs:
2429
# Always runs. Downloads artifacts from the build run and verifies them.
2530
# In non-dry-run mode, also creates the GitHub release.
31+
# Skipped on push trigger (used only to register the workflow with GitHub).
2632
prepare-release:
33+
if: ${{ github.event_name == 'workflow_dispatch' }}
2734
runs-on:
2835
group: databricks-deco-testing-runner-group
2936
labels: ubuntu-latest-deco

0 commit comments

Comments
 (0)