Skip to content

Commit

Permalink
ci(renovate): trigger on successful CI run on main (#1080)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusrbrown authored Aug 22, 2024
1 parent 2e24754 commit 72beff1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/renovate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 || '' }}
Expand Down

0 comments on commit 72beff1

Please sign in to comment.