Skip to content

Commit

Permalink
ci: configure Renovate to automerge all action updates
Browse files Browse the repository at this point in the history
... which basically is everything renovate does for an ansible role, except ansible-galaxy requriements.yml but not many roles (not any of mine of yet) have anything in there with specific version

happens on base schedule (yearly)

removing the global branches-ignore from gh-pages CI is meant to ensure renovate doesn't break it when it updates something within said workflow file (or at least, the tasks that come up until to it)

POC: JonasPammer/ansible-role-bootstrap@5b5bb8f
  • Loading branch information
JonasPammer committed Feb 12, 2024
1 parent 355de58 commit 3470bb6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions {{ cookiecutter.project_slug }}/.github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
{
matchDepTypes: ["action"],
labels: ["kind/dependencies", "kind/infrastructure"],
automerge: true,
},
{
schedule: ["every 3 months on the first day of the month"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: build self-contained READMEs

"on":
push:
branches-ignore:
- renovate/**

permissions:
contents: read
Expand Down Expand Up @@ -87,12 +85,16 @@ jobs:
pre-commit run --files README.md SECURITY.md || true
pre-commit run --files README.md SECURITY.md || true
- id: is_renovate
run: echo "::set-output name=is_renovate::$( [[ ${GITHUB_REF#refs/heads/} != renovate/* ]] && echo false || echo true )"

- name: Commit generated files.
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "{% raw %}${{ env.FIRST_LINE_OF_HEAD_COMMIT_MESSAGE }}{% endraw %}\n{% raw %}${{ github.sha }}{% endraw %}"
file_pattern: README.adoc README.md SECURITY.md
disable_globbing: true
if: steps.is_renovate.outputs.is_renovate == 'false'

### (Deploy README.adoc)
- name: Generate HTML
Expand Down

0 comments on commit 3470bb6

Please sign in to comment.