Skip to content

Commit 82fe5f0

Browse files
committed
Switch post-release to repository_dispatch trigger
1 parent 563c4ce commit 82fe5f0

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.github/workflows/post-release.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,21 @@ name: Post Release
22

33
on:
44
workflow_dispatch:
5-
workflow_run:
6-
workflows: ["Publish Release"]
7-
types:
8-
- completed
5+
inputs:
6+
target_branch:
7+
description: 'Target branch (e.g., main, 8.0-stable)'
8+
required: true
9+
default: 'main'
10+
type: string
11+
repository_dispatch:
12+
types: [post-release]
913

1014
jobs:
11-
bump-dev-version:
12-
if: github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success'
15+
post-release:
1316
uses: AlchemyCMS/.github/.github/workflows/post-release.yml@main
1417
with:
1518
version_file_path: lib/alchemy/version.rb
16-
target_branch: ${{ github.event.workflow_run.head_branch }}
19+
target_branch: ${{ github.event.client_payload.target_branch || inputs.target_branch }}
1720
secrets:
1821
app_id: ${{ vars.ALCHEMY_BOT_APP_ID }}
1922
app_private_key: ${{ secrets.ALCHEMY_BOT_APP_PRIVATE_KEY }}

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
uses: AlchemyCMS/.github/.github/workflows/release.yml@main
1515
with:
1616
version_file_path: lib/alchemy/version.rb
17+
target_branch: ${{ github.event.pull_request.base.ref || github.ref_name }}
1718
secrets:
1819
app_id: ${{ vars.ALCHEMY_BOT_APP_ID }}
1920
app_private_key: ${{ secrets.ALCHEMY_BOT_APP_PRIVATE_KEY }}

0 commit comments

Comments
 (0)