mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-21 23:05:46 +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.
26 lines
709 B
YAML
26 lines
709 B
YAML
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]
|
|
workflow_dispatch:
|
|
workflow_run:
|
|
workflows: ["Promote next to release"]
|
|
types: [completed]
|
|
|
|
jobs:
|
|
publish-release:
|
|
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
|
|
uses: ./.github/workflows/reusable-channel-publish.yml
|
|
with:
|
|
channel: release
|
|
source_ref: release
|
|
target_branch: release
|
|
prerelease: false
|
|
draft_release: true
|
|
verify_nix: true
|
|
secrets: inherit
|