renovate #7532
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: renovate | |
on: | |
push: | |
schedule: | |
# - cron: '5 */6 * * *' | |
- cron: '*/30 * * * *' | |
workflow_dispatch: | |
env: | |
# RENOVATE_DRY_RUN: ${{ ((github.event_name != 'schedule' && github.event_name != 'workflow_dispatch') || (github.ref_name != 'main') && 'full' || '' }} | |
RENOVATE_DRY_RUN: ${{ ((github.event_name != 'schedule' && github.event_name != 'workflow_dispatch')) && 'full' || '' }} # dry-run on main to eleminate race condition | |
# RENOVATE_GIT_PRIVATE_KEY: ${{ secrets.GPG }} | |
jobs: | |
gitlab: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
with: | |
show-progress: false | |
- name: Restore renovate repo cache | |
uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 | |
with: | |
path: | | |
/tmp/renovate/cache/renovate/repository | |
key: repo-cache-${{ github.run_id }} | |
restore-keys: | | |
repo-cache- | |
- name: Restore renovate package cache | |
uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 | |
with: | |
path: | | |
/tmp/renovate/cache/renovate/renovate-cache-sqlite | |
key: package-cache-${{ github.run_id }} | |
restore-keys: | | |
package-cache- | |
- name: Restore perms | |
run: | | |
if [ -d /tmp/renovate ]; then | |
echo "fixing renovate perms" | |
sudo chown -R 12021:0 /tmp/renovate/ | |
fi | |
- name: Renovate | |
uses: renovatebot/github-action@a447f09147d00e00ae2a82ad5ef51ca89352da80 # v43.0.9 | |
with: | |
token: ${{ secrets.GITLAB_TOKEN }} | |
renovate-version: 41.82.10 | |
configurationFile: config.js | |
docker-volumes: | | |
/tmp:/tmp ; | |
${{ github.workspace }}:/github-action | |
env: | |
GITHUB_COM_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
LOG_LEVEL: debug | |
RENOVATE_PLATFORM: gitlab | |
RENOVATE_REPOSITORY_CACHE: 'enabled' | |
RENOVATE_GIT_AUTHOR: Renovate Bot <[email protected]> | |
RENOVATE_X_SQLITE_PACKAGE_CACHE: true | |
- name: Save renovate repo cache | |
if: always() && env.RENOVATE_DRY_RUN != 'full' | |
uses: actions/cache/save@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 | |
with: | |
path: | | |
/tmp/renovate/cache/renovate/repository | |
key: repo-cache-${{ github.run_id }} | |
- name: Save renovate package cache | |
if: always() && env.RENOVATE_DRY_RUN != 'full' | |
uses: actions/cache/save@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 | |
with: | |
path: | | |
/tmp/renovate/cache/renovate/renovate-cache-sqlite | |
key: package-cache-${{ github.run_id }} |