Skip to content

Commit

Permalink
feat: Renovate GitHub Actions workflow
Browse files Browse the repository at this point in the history
Moves this project and the projects it generates to using the Renovate GitHub Action instead of using the Mend Renovate GitHub App. This makes it so new projects will be setup with Renovate from the outset. Also moves the Renovate config file into the `.github/` directory.
  • Loading branch information
jwbennet committed Feb 10, 2024
1 parent 8010544 commit e86b563
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
".lintstagedrc": "yaml",
".mkdocsrc": "yaml",
".precommitrc": "yaml",
".prettierrc": "yaml"
".prettierrc": "yaml",
".renovaterc": "json"
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions renovate.json → .github/.renovaterc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"github>jwbennet/.github:renovate-dev-containers",
"github>jwbennet/.github:renovate-pre-commit"
],
"repositories": ["jwbennet/project-base"],
"gitAuthor": "renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>",
"github-actions": {
"fileMatch": ["workflows/.+\\.ya?ml.jinja$"]
},
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/renovate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Dependency Updates
on:
workflow_dispatch:
schedule:
- cron: "0 18 * * *"
jobs:
renovate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Self-hosted Renovate
uses: renovatebot/github-action@v40.0.3
with:
token: ${{ secrets.RENOVATE_TOKEN }}
configurationFile: .github/.renovaterc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
".lintstagedrc": "yaml",
".mkdocsrc": "yaml",
".precommitrc": "yaml",
".prettierrc": "yaml"
".prettierrc": "yaml",
".renovaterc": "json"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"github>jwbennet/.github:renovate-dev-containers",
"github>jwbennet/.github:renovate-pre-commit"
],
"repositories": ["{{ github_repository }}"],
"gitAuthor": "renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>",
"packageRules": [
{
"matchPackagePatterns": ["*"],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Dependency Updates
on:
workflow_dispatch:
schedule:
- cron: "0 18 * * *"
jobs:
renovate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Self-hosted Renovate
uses: renovatebot/github-action@v40.0.3
with:
token: "{% raw %}${{ secrets.RENOVATE_TOKEN }}{% endraw %}"
configurationFile: .github/.renovaterc

0 comments on commit e86b563

Please sign in to comment.