From 72beff152aad3f0fb7eb6a4096e57b7b8cf8feec Mon Sep 17 00:00:00 2001 From: "Marcus R. Brown" Date: Thu, 22 Aug 2024 03:10:11 -0700 Subject: [PATCH] ci(renovate): trigger on successful CI run on `main` (#1080) --- .github/workflows/renovate.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/renovate.yaml b/.github/workflows/renovate.yaml index c7e2092..3cef86a 100644 --- a/.github/workflows/renovate.yaml +++ b/.github/workflows/renovate.yaml @@ -17,6 +17,10 @@ name: Renovate required: false type: boolean default: false + workflow_run: + branches: [main] + types: [completed] + workflows: ['CI'] concurrency: group: ${{ github.workflow }}-${{ github.event.number || github.ref }} @@ -69,7 +73,8 @@ jobs: cache: >- ${{ !contains('["issues", "pull_request"]', github.event_name) && github.ref_name == 'main' || contains(github.ref_name, 'renovate/') }} dry_run: ${{ github.event_name == 'push' && github.ref_name != 'main' }} - if: github.event_name != 'push' || steps.filter.outputs.changes == 'true' + if: >- + ${{ !contains('["push", "workflow_run"]', github.event_name) || github.event.workflow_run.conclusion == 'success' || steps.filter.outputs.changes == 'true' }} uses: bfra-me/renovate-action@v4 with: branch: ${{ env.dry_run == 'true' && github.ref_name || '' }}