Angular-Org Renovate #20167
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: Angular-Org Renovate | |
on: | |
workflow_dispatch: | |
schedule: | |
# Runs every 60 minutes. | |
# This is the recommanded running time https://github.com/renovatebot/renovate/discussions/16658 | |
- cron: '0/60 * * * *' | |
# Declare default permissions as read only. | |
permissions: | |
contents: read | |
jobs: | |
renovate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Get current date | |
id: date | |
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT | |
# Note: we use `date` as part of the key hash so that we create a new cache every day. | |
# We do not use `restore-keys` so that the cache does not keep growing. | |
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: | | |
.github/ng-renovate/.yarn/cache | |
/tmp/renovate | |
key: v2-renovate-${{hashFiles('.github/ng-renovate/yarn.lock')}}-${{ steps.date.outputs.date }} | |
- run: yarn --cwd .github/ng-renovate install --immutable | |
shell: bash | |
# Note: Run Renovate outside of Yarn as otherwise we would end up breaking Yarn path | |
# resolution due to Yarn setting `YARN_IGNORE_PATH`. This would cause vendored Yarn | |
# installations to be ignored and lock file generation for repositories to break. | |
- run: .github/ng-renovate/node_modules/.bin/renovate | |
env: | |
LOG_LEVEL: debug | |
RENOVATE_TOKEN: ${{ secrets.NG_RENOVATE_USER_ACCESS_TOKEN }} | |
RENOVATE_FORK_TOKEN: ${{ secrets.NG_RENOVATE_USER_ACCESS_TOKEN }} | |
GITHUB_COM_TOKEN: ${{ secrets.NG_RENOVATE_USER_ACCESS_TOKEN }} | |
RENOVATE_CONFIG_FILE: .github/ng-renovate/runner-config.js |