mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-27 12:53:57 +01:00
900307a3ed
When the CI vars.ROLE is forgejo-coding, it is assumed to be the
repository where collaborative coding happens,
i.e. https://codeberg.org/forgejo/forgejo
When the CI vars.ROLE is forgejo-testing, it is assumed that only codebase
testing is to be run and no other tests such as release build
integration, label constraints, backporting etc.
(cherry picked from commit f82840f1ea
)
Conflicts:
.forgejo/workflows/merge-requirements.yml
.forgejo/workflows/release-notes-assistant-milestones.yml
.forgejo/workflows/release-notes-assistant.yml
did not exist back in v7.0
55 lines
1.8 KiB
YAML
55 lines
1.8 KiB
YAML
name: renovate
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- renovate/** # self-test updates
|
|
paths:
|
|
- .forgejo/workflows/renovate.yml
|
|
schedule:
|
|
- cron: '*/30 * * * *'
|
|
|
|
env:
|
|
RENOVATE_DRY_RUN: ${{ (github.event_name != 'schedule' && github.ref_name != github.event.repository.default_branch) && 'full' || '' }}
|
|
RENOVATE_REPOSITORIES: ${{ github.repository }}
|
|
|
|
jobs:
|
|
renovate:
|
|
if: vars.ROLE == 'forgejo-coding' && secrets.RENOVATE_TOKEN != ''
|
|
|
|
runs-on: docker
|
|
container:
|
|
image: ghcr.io/visualon/renovate:37.272.0
|
|
|
|
steps:
|
|
- uses: https://code.forgejo.org/actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
|
|
with:
|
|
path: |
|
|
.tmp/cache/renovate/repository
|
|
key: repo-cache-${{ github.run_id }}
|
|
restore-keys: |
|
|
repo-cache-
|
|
|
|
- run: renovate
|
|
env:
|
|
GITHUB_COM_TOKEN: ${{ secrets.RENOVATE_GITHUB_COM_TOKEN }}
|
|
LOG_LEVEL: debug
|
|
RENOVATE_BASE_DIR: ${{ github.workspace }}/.tmp
|
|
RENOVATE_ENDPOINT: ${{ github.server_url }}
|
|
RENOVATE_PLATFORM: gitea
|
|
RENOVATE_REPOSITORY_CACHE: 'enabled'
|
|
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
|
|
RENOVATE_GIT_AUTHOR: 'Renovate Bot <forgejo-renovate-action@forgejo.org>'
|
|
|
|
GIT_AUTHOR_NAME: 'Renovate Bot'
|
|
GIT_AUTHOR_EMAIL: 'forgejo-renovate-action@forgejo.org'
|
|
GIT_COMMITTER_NAME: 'Renovate Bot'
|
|
GIT_COMMITTER_EMAIL: 'forgejo-renovate-action@forgejo.org'
|
|
|
|
- name: Save renovate repo cache
|
|
if: always() && env.RENOVATE_DRY_RUN == 'true'
|
|
uses: https://code.forgejo.org/actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
|
|
with:
|
|
path: |
|
|
.tmp/cache/renovate/repository
|
|
key: repo-cache-${{ github.run_id }}
|