From da9fdf4450af628956412a88eedfbdc7ba7f5e66 Mon Sep 17 00:00:00 2001 From: Arjun Raja Yogidas Date: Tue, 10 Sep 2024 23:09:12 +0000 Subject: [PATCH] ci: Update workflow logic to fix release automation trigger Signed-off-by: Arjun Raja Yogidas --- .github/workflows/release-automation.yaml | 4 +--- .github/workflows/release-please.yaml | 8 ++++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-automation.yaml b/.github/workflows/release-automation.yaml index 51e4e06fc..35c48713f 100644 --- a/.github/workflows/release-automation.yaml +++ b/.github/workflows/release-automation.yaml @@ -1,9 +1,7 @@ name: Release Finch latest version on: workflow_dispatch: - push: - tags: - - 'v[0-9]+.[0-9]+.[0-9]+' + workflow_call: jobs: get-latest-tag: diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml index 2a0ea9509..bdf566ab0 100644 --- a/.github/workflows/release-please.yaml +++ b/.github/workflows/release-please.yaml @@ -7,5 +7,13 @@ name: release-please jobs: release-please: runs-on: ubuntu-latest + outputs: + release_created: ${{ steps.release.outputs.release_created }} steps: - uses: googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # v4.1.3 + id: release + trigger-release-automation: + name: Trigger release-automation.yaml if PR is merged + needs: [release-please] + if: ${{ needs.release-please.outputs.release_created == 'true' }} + uses: ./.github/workflows/release-automation.yaml