Skip to content

Renovate

Renovate #1253

Workflow file for this run

name: Renovate
on:
workflow_dispatch:
schedule:
- cron: "0 12 * * *"
concurrency:
group: renovate
cancel-in-progress: false
env:
RENOVATE_CACHE_DIR: /tmp/renovate/cache
jobs:
renovate:
runs-on: ubuntu-latest
steps:
# https://github.com/kou/arrow/blob/main/ci/scripts/util_free_space.sh
- name: Free Disk Space
shell: bash
run: |
items=(
/usr/local/lib/android # ~15GB
/opt/hostedtoolcache/CodeQL # ~5GB
)
echo "Before cleanup:"
df -h /
for item in "${items[@]}"; do
echo "Processing $item"
if [ ! -e "$item" ]; then
continue
fi
sudo rm -rf "$item" || :
echo "After cleanup of $item:"
df -h /
done
echo "After cleanup:"
df -h /
- name: Checkout
uses: actions/checkout@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Restore Renovate Cache
uses: actions/cache/restore@v5
with:
path: ${{ env.RENOVATE_CACHE_DIR }}
key: renovate-${{ github.run_id }}
restore-keys: |
renovate-
- name: Pre Pull Docker Image
run: |
docker pull ghcr.io/truenas/apps_validation:latest
- name: Fix Cache Permissions
run: |
set -x
sudo mkdir -p "$RENOVATE_CACHE_DIR"
sudo chown -R 12021:0 $(dirname "$RENOVATE_CACHE_DIR")
- name: Self-hosted Renovate
uses: renovatebot/github-action@v46.1.13
env:
RENOVATE_PR_HOURLY_LIMIT: 10
LOG_LEVEL: debug
with:
configurationFile: .github/renovate-config.js
# TODO: https://github.com/renovatebot/github-action/tree/main?tab=readme-ov-file
token: ${{ secrets.RENOVATE_TOKEN }}
mount-docker-socket: true
- name: Save Renovate Cache
uses: actions/cache/save@v5
if: always()
with:
# Caches that don't get accessed for the last 7 days are deleted
# https://github.com/orgs/community/discussions/54404#discussioncomment-5804631
path: ${{ env.RENOVATE_CACHE_DIR }}
key: renovate-${{ github.run_id }}