mirror of
https://github.com/kilyabin/psysonic.git
synced 2026-07-21 22:15:40 +00:00
ci(release): always checkout next/release for channel publish (#353)
workflow_dispatch previously used github.ref_name for source_ref, so running Next Channel from branch `next` loaded stale reusable workflows and could recreate the invalid `app-v` tag. Pin source_ref to the channel branch; document running manual workflows from `main` for latest publish YAML.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
name: Release Channel
|
||||
|
||||
# Same GITHUB_TOKEN push limitation as Next Channel (see next.yml).
|
||||
#
|
||||
# workflow_dispatch: use workflow from `main` for latest publish logic; checkout ref is always `release`.
|
||||
on:
|
||||
push:
|
||||
branches: [release]
|
||||
@@ -15,7 +17,7 @@ jobs:
|
||||
uses: ./.github/workflows/reusable-channel-publish.yml
|
||||
with:
|
||||
channel: release
|
||||
source_ref: ${{ github.event_name == 'workflow_run' && 'release' || github.ref_name }}
|
||||
source_ref: release
|
||||
target_branch: release
|
||||
prerelease: false
|
||||
draft_release: true
|
||||
|
||||
Reference in New Issue
Block a user