Skip to content

Commit 6b2c8c0

Browse files
lehrtTheresa Lehr
andauthored
adding manual trigger to action for debug (#3987)
Co-authored-by: Theresa Lehr <[email protected]>
1 parent aab4e11 commit 6b2c8c0

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/release-please-master.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,30 @@ on:
1414
push:
1515
branches:
1616
- dev # Trigger when dev is updated
17+
workflow_dispatch: # Allow manual triggering from GitHub UI
18+
inputs:
19+
reason:
20+
description: 'Reason for manual trigger'
21+
required: false
22+
default: 'Manual release trigger'
23+
dry_run:
24+
description: 'Perform dry run (no actual release)'
25+
required: false
26+
type: boolean
27+
default: false
1728

1829
jobs:
1930
release-please-master:
2031
runs-on: ubuntu-latest
2132
steps:
33+
- name: Log manual trigger details
34+
if: github.event_name == 'workflow_dispatch'
35+
run: |
36+
echo "Manual trigger initiated"
37+
echo "Reason: ${{ github.event.inputs.reason }}"
38+
echo "Dry run: ${{ github.event.inputs.dry_run }}"
39+
echo "Triggered by: ${{ github.actor }}"
40+
2241
- name: Checkout repository
2342
uses: actions/checkout@v4
2443

@@ -38,3 +57,4 @@ jobs:
3857
manifest: true
3958
primaryBranch: dev
4059
handleGHRelease: true
60+
dry-run: ${{ github.event.inputs.dry_run == 'true' }}

0 commit comments

Comments
 (0)