Skip to content

Commit

Permalink
add self-validate workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
roobre committed Nov 15, 2024
1 parent 803d4d8 commit 60c4185
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 11 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/renovate-validate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This is _NOT_ a reusable workflow, but rather the renovate run for this repo itself.
name: Validate renovate config
on:
pull_request:
paths:
# When renovate config changes:
- "renovate.*"
- ".renovate.*"
- ".github/renovate.*"
# Also when renovate version changes:
- ".github/workflows/*"
# For this repo specifically, also when actions themselves change.
- ".github/actions/*"

jobs:
renovate:
permissions:
# Needed for logging into vault.
contents: read
id-token: write
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout Code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Validate renovate config
uses: ./actions/renovate-validate
24 changes: 24 additions & 0 deletions .github/workflows/renovate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This is _NOT_ a reusable workflow, but rather the renovate run for this repo itself.
name: Self-hosted Renovate

on:
schedule:
- cron: "22 */4 * * *"
# Run this job on PRs to, in dry run mode, as a sort of self-check.
pull_request:

jobs:
renovate:
permissions:
# Needed for logging into vault.
contents: read
id-token: write
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout Code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Self-hosted renovate
uses: ./actions/renovate-validate
with:
dry-run: "${{ github.event_name == 'pull_request' }}"
11 changes: 0 additions & 11 deletions .github/workflows/self-renovate.yaml

This file was deleted.

0 comments on commit 60c4185

Please sign in to comment.