diff --git a/.github/workflows/release-final.yml b/.github/workflows/release-final.yml index 2581ba10dbd3..a43c2383a010 100644 --- a/.github/workflows/release-final.yml +++ b/.github/workflows/release-final.yml @@ -1,5 +1,12 @@ name: "[Release] Publish packages and apps" on: + workflow_call: + inputs: + ref: + type: string + description: "the ref (branch) to release from" + required: false + default: main workflow_dispatch: inputs: app: @@ -17,13 +24,6 @@ on: required: false default: main - workflow_run: - workflows: - - \[Release\] Prepare for releasing - - \[Release\](Hotfix) Prepare for releasing - types: - - "completed" - jobs: release: name: Release diff --git a/.github/workflows/release-prepare-hotfix.yml b/.github/workflows/release-prepare-hotfix.yml index 8f3bd97271a8..e99931691464 100644 --- a/.github/workflows/release-prepare-hotfix.yml +++ b/.github/workflows/release-prepare-hotfix.yml @@ -120,3 +120,11 @@ jobs: gh pr create --title ":rotating_light: Hotfix Release merge conflicts" -F .github/templates/hotfix-release-conflicts.md --base release --head support/hotfix-release-merge-conflicts fi fi + + release-final: + name: "[Release] Publish packages and apps" + needs: prepare-release + uses: LedgerHQ/ledger-live/.github/workflows/release-final.yml@develop + with: + ref: hotfix + secrets: inherit \ No newline at end of file diff --git a/.github/workflows/release-prepare.yml b/.github/workflows/release-prepare.yml index 47d5e484166e..3a009e3f5c94 100644 --- a/.github/workflows/release-prepare.yml +++ b/.github/workflows/release-prepare.yml @@ -75,3 +75,11 @@ jobs: git checkout -b support/release-merge-conflicts git push origin support/release-merge-conflicts gh pr create --title ":rotating_light: Release merge conflicts" -F .github/templates/release-conflicts.md --base develop --head support/release-merge-conflicts + + release-final: + name: "[Release] Publish packages and apps" + needs: prepare-release + uses: LedgerHQ/ledger-live/.github/workflows/release-final.yml@develop + with: + ref: main + secrets: inherit \ No newline at end of file