mirror of
https://github.com/kilyabin/psysonic.git
synced 2026-07-22 06:25:41 +00:00
133e09ec63
GitHub does not fire push workflows for commits pushed with the default actions token. Chain Next/Release channel workflows from the matching promote workflow_run on success. Made-with: Cursor
24 lines
668 B
YAML
24 lines
668 B
YAML
name: Release Channel
|
|
|
|
# Same GITHUB_TOKEN push limitation as Next Channel (see next.yml).
|
|
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: ${{ github.event_name == 'workflow_run' && 'release' || github.ref_name }}
|
|
target_branch: release
|
|
prerelease: false
|
|
draft_release: true
|
|
verify_nix: true
|
|
secrets: inherit
|