Skip to content

Commit da9fdf4

Browse files
committed
ci: Update workflow logic to fix release automation trigger
Signed-off-by: Arjun Raja Yogidas <[email protected]>
1 parent 6d49ac7 commit da9fdf4

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/release-automation.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: Release Finch latest version
22
on:
33
workflow_dispatch:
4-
push:
5-
tags:
6-
- 'v[0-9]+.[0-9]+.[0-9]+'
4+
workflow_call:
75

86
jobs:
97
get-latest-tag:

.github/workflows/release-please.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,13 @@ name: release-please
77
jobs:
88
release-please:
99
runs-on: ubuntu-latest
10+
outputs:
11+
release_created: ${{ steps.release.outputs.release_created }}
1012
steps:
1113
- uses: googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # v4.1.3
14+
id: release
15+
trigger-release-automation:
16+
name: Trigger release-automation.yaml if PR is merged
17+
needs: [release-please]
18+
if: ${{ needs.release-please.outputs.release_created == 'true' }}
19+
uses: ./.github/workflows/release-automation.yaml

0 commit comments

Comments
 (0)