From e9791c3d634cd4b66bbb82888edc0e4269de79a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Gorej?= Date: Mon, 5 Aug 2024 08:51:09 +0200 Subject: [PATCH] ci(release): automatically release to GitHub Package Registry (#4292) --- .github/workflows/release-to-GPR.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-to-GPR.yml b/.github/workflows/release-to-GPR.yml index 0fded9d488..e50fc8e800 100644 --- a/.github/workflows/release-to-GPR.yml +++ b/.github/workflows/release-to-GPR.yml @@ -1,14 +1,17 @@ name: Release monorepo packages to GitHub Package Registry on: - workflow_dispatch: - branches: - - main + workflow_run: + workflows: ["Release monorepo packages"] + types: + - completed + branches: [main] env: CPU_CORES: 2 jobs: release: + if: github.event.workflow_run.conclusion == 'success' name: Release to GitHub Package Registry runs-on: ubuntu-latest env: