From ee8a5fc02b6c487c088fa58ff05df8cff47c1178 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 19 Jul 2024 16:39:08 +0400 Subject: Added Gitea --- .gitea/workflows/renovate.yml | 26 ++++++++++++++++++++++++++ .github/workflows/.gitkeep | 0 .github/workflows/main.yml | 17 ----------------- .renovaterc | 24 ++++++++++++++++++++++++ renovate.config.cjs | 6 ++++++ 5 files changed, 56 insertions(+), 17 deletions(-) create mode 100644 .gitea/workflows/renovate.yml create mode 100644 .github/workflows/.gitkeep delete mode 100644 .github/workflows/main.yml create mode 100644 .renovaterc create mode 100644 renovate.config.cjs diff --git a/.gitea/workflows/renovate.yml b/.gitea/workflows/renovate.yml new file mode 100644 index 0000000..5c3c468 --- /dev/null +++ b/.gitea/workflows/renovate.yml @@ -0,0 +1,26 @@ +name: RenovateBot + +on: + schedule: + - cron: "@daily" + push: + branches: + - master + +jobs: + renovate: + container: ghcr.io/renovatebot/renovate:37 + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Run renovate + run: | + renovate + env: + LOG_LEVEL: debug + RENOVATE_CONFIG_FILE: renovate.config.cjs + RENOVATE_REPOSITORIES: ${{ gitea.repository }} + RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }} diff --git a/.github/workflows/.gitkeep b/.github/workflows/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index dac16ed..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Workflow - -on: [push] - -jobs: - mirror: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - uses: yesolutions/mirror-action@master - with: - REMOTE: 'https://git.popov.link/fparkan.git' - GIT_USERNAME: ${{ secrets.GIT_USERNAME }} - GIT_PASSWORD: ${{ secrets.GIT_PASSWORD }} diff --git a/.renovaterc b/.renovaterc new file mode 100644 index 0000000..8aac33c --- /dev/null +++ b/.renovaterc @@ -0,0 +1,24 @@ +{ + "assignees": [ + "valentineus" + ], + "extends": [ + "config:recommended", + ":disableDependencyDashboard" + ], + "packageRules": [ + { + "groupName": "all digest updates", + "groupSlug": "all-digest", + "matchPackagePatterns": [ + "*" + ], + "matchUpdateTypes": [ + "minor", + "patch", + "pin", + "digest" + ] + } + ] +} \ No newline at end of file diff --git a/renovate.config.cjs b/renovate.config.cjs new file mode 100644 index 0000000..44bc458 --- /dev/null +++ b/renovate.config.cjs @@ -0,0 +1,6 @@ +module.exports = { + endpoint: "https://code.popov.link", + gitAuthor: "RenovateBot ", + optimizeForDisabled: true, + platform: "gitea", +}; -- cgit v1.2.3