From 1db4e8f42c2fc2f54f573e4776db99a1d6d00aff Mon Sep 17 00:00:00 2001 From: Igor Bari Date: Mon, 15 Apr 2024 12:12:38 +0200 Subject: [PATCH] add renovate --- .github/renovate.json | 14 ++++++++++++ .github/workflows/update_dependencies.yml | 27 +++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .github/renovate.json create mode 100644 .github/workflows/update_dependencies.yml diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 0000000..25d25e1 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,14 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "dependencyDashboard": true, + "groupName": "all dependencies", + "groupSlug": "all", + "packageRules": [ + { + "groupName": "all dependencies", + "groupSlug": "all", + "matchPackagePatterns": ["*"] + } + ], + "labels": ["dependencies"] + } \ No newline at end of file diff --git a/.github/workflows/update_dependencies.yml b/.github/workflows/update_dependencies.yml new file mode 100644 index 0000000..d99a026 --- /dev/null +++ b/.github/workflows/update_dependencies.yml @@ -0,0 +1,27 @@ +name: Update dependencies + +on: + # push: + # branches: + # - main + schedule: + - cron: '7 0 * * 1' + +concurrency: + group: any + cancel-in-progress: true + +jobs: + update-dependencies: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write # Requires also "Allow GitHub Actions to create and approve pull requests" to be enabled in the repository settings + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup node + uses: actions/setup-node@v4 + # - env: + # LOG_LEVEL: debug + - run: npx renovate --token ${{ secrets.GITHUB_TOKEN }} --platform github --autodiscover \ No newline at end of file