Configure renovate
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
name: Auto-merge updates
|
||||
on: pull_request
|
||||
permissions:
|
||||
contents: write
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.head_ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
auto-merge-dependabot:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.repository_owner == 'monosans' && github.actor == 'dependabot[bot]' }}
|
||||
steps:
|
||||
- id: dependabot-metadata
|
||||
uses: dependabot/fetch-metadata@v2
|
||||
- if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' && steps.dependabot-metadata.outputs.package-ecosystem != 'docker' }}
|
||||
run: gh pr merge --auto --delete-branch --squash "${PR_URL}"
|
||||
env:
|
||||
PR_URL: ${{ github.event.pull_request.html_url }}
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
auto-merge-updates:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.repository_owner == 'monosans' && github.actor_id == '158570872' }}
|
||||
steps:
|
||||
- run: gh pr merge --auto --delete-branch --squash "${PR_URL}"
|
||||
env:
|
||||
PR_URL: ${{ github.event.pull_request.html_url }}
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
@@ -1,39 +0,0 @@
|
||||
name: Update dependencies
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: 00 01 * * *
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
update-dependencies:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.repository_owner == 'monosans' }}
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- cmd: pipx run poetry lock --no-interaction
|
||||
commit-msg: Update poetry.lock
|
||||
branch: update/poetry-lock
|
||||
- cmd: pipx run pre-commit autoupdate
|
||||
commit-msg: Update .pre-commit-config.yaml
|
||||
branch: update/pre-commit-config
|
||||
fail-fast: false
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: ${{ matrix.cmd }}
|
||||
- id: generate-token
|
||||
uses: tibdex/github-app-token@v2
|
||||
with:
|
||||
app_id: ${{ secrets.APP_ID }}
|
||||
private_key: ${{ secrets.PRIVATE_KEY }}
|
||||
- uses: peter-evans/create-pull-request@v7
|
||||
with:
|
||||
token: ${{ steps.generate-token.outputs.token }}
|
||||
commit-message: ${{ matrix.commit-msg }}
|
||||
branch: ${{ matrix.branch }}
|
||||
delete-branch: true
|
||||
sign-commits: true
|
||||
title: ${{ matrix.commit-msg }}
|
||||
body:
|
||||
Reference in New Issue
Block a user