mirror of
https://github.com/kilyabin/psysonic.git
synced 2026-07-21 22:15:40 +00:00
ba9f5728b3
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.
29 lines
979 B
YAML
29 lines
979 B
YAML
name: Next Channel
|
|
|
|
# Pushes made with the default GITHUB_TOKEN from another workflow (e.g. Promote main to next)
|
|
# do not trigger push workflows — GitHub blocks recursive runs. Use workflow_run below.
|
|
#
|
|
# workflow_dispatch: set "Use workflow from branch" to `main` so reusable-channel-publish.yml
|
|
# is the latest (tag guards, etc.). The tree built for artifacts is always ref `next` below.
|
|
on:
|
|
push:
|
|
branches: [next]
|
|
workflow_dispatch:
|
|
workflow_run:
|
|
workflows: ["Promote main to next"]
|
|
types: [completed]
|
|
|
|
jobs:
|
|
publish-next:
|
|
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
|
|
uses: ./.github/workflows/reusable-channel-publish.yml
|
|
with:
|
|
channel: next
|
|
# Always build from channel branch; do not tie checkout to workflow_dispatch UI branch.
|
|
source_ref: next
|
|
target_branch: next
|
|
prerelease: true
|
|
draft_release: false
|
|
verify_nix: true
|
|
secrets: inherit
|