Renovate #152
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Renovate | |
on: | |
schedule: | |
# Every 12 hours, offset by 22 minutes to avoid busy times | |
- cron: "22 */12 * * *" | |
# Allow manually triggering | |
workflow_dispatch: | |
permissions: {} | |
jobs: | |
renovate: | |
permissions: | |
contents: read | |
id-token: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
- name: retrieve secrets | |
id: get-secrets | |
uses: grafana/shared-workflows/actions/get-vault-secrets@7d18a46aafb8b875ed76a0bc98852d74b91e7f91 # v1.0.0 | |
with: | |
common_secrets: | | |
GRAFANA_RENOVATE_APP_ID=grafana-renovate-app:app-id | |
GRAFANA_RENOVATE_PRIVATE_KEY=grafana-renovate-app:private-key | |
- name: Create GitHub app token | |
id: app-token | |
uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2 | |
with: | |
app-id: ${{ env.GRAFANA_RENOVATE_APP_ID }} | |
private-key: ${{ env.GRAFANA_RENOVATE_PRIVATE_KEY }} | |
owner: ${{ github.repository_owner }} | |
- name: Self-hosted Renovate | |
uses: renovatebot/github-action@12f8ed8e6a936a00dc66b628d224488ac406b5e8 # v42.0.5 | |
with: | |
renovate-version: 40.58.0 | |
token: "${{ steps.app-token.outputs.token }}" | |
env: | |
RENOVATE_PLATFORM: github | |
RENOVATE_REPOSITORIES: ${{ github.repository }} | |
RENOVATE_USERNAME: GrafanaRenovateBot |