Skip to content

Commit

Permalink
ci: Update workflow logic to fix release automation trigger
Browse files Browse the repository at this point in the history
Signed-off-by: Arjun Raja Yogidas <[email protected]>
  • Loading branch information
coderbirju committed Sep 10, 2024
1 parent 6d49ac7 commit da9fdf4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/release-automation.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit da9fdf4

Please sign in to comment.