From 9f11e090afd1456b22441d525fa71852b4e27f41 Mon Sep 17 00:00:00 2001 From: xsalefter Date: Fri, 9 Jun 2023 11:18:28 +0700 Subject: [PATCH] add release-repo-dispatch.yml --- .github/workflows/release-repo-dispatch.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/release-repo-dispatch.yml diff --git a/.github/workflows/release-repo-dispatch.yml b/.github/workflows/release-repo-dispatch.yml new file mode 100644 index 00000000..b0f4208a --- /dev/null +++ b/.github/workflows/release-repo-dispatch.yml @@ -0,0 +1,18 @@ +name: release-repo-dispatch + +on: + repository_dispatch: + +jobs: + update_version_from_repository_dispatch: + uses: killbill/gh-actions-shared/.github/workflows/update-version.yml@main + + # If CI failed, should we revert commit? I don't think so, since we still have release.yml with "workflow_dispatch", + # fix broken things and then trigger release.yml manually. + run-ci: + uses: ./.github/workflows/ci.yml + needs: update_version_from_repository_dispatch + + release: + uses: ./.github/workflows/release.yml + needs: run-ci