Renovate #1723
This file contains 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: | |
schedule: | |
- cron: "0 0 * * *" | |
push: | |
branches: | |
main | |
workflow_dispatch: | |
env: | |
POWERSHELL_CLI_TELEMETRY_OPTOUT: "1" | |
POWERSHELL_TELEMETRY_OPTOUT: "1" | |
POWERSHELL_UPDATECHECK: "Off" | |
POWERSHELL_UPDATECHECK_OPTOUT: "1" | |
DOTNET_CLI_TELEMETRY_OPTOUT: "1" | |
DOTNET_TELEMETRY_OPTOUT: "1" | |
COMPlus_EnableDiagnostics: "0" | |
jobs: | |
renovate: | |
runs-on: windows-latest | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: write | |
pull-requests: write | |
issues: write | |
checks: write | |
steps: | |
- name: Setup Node.js environment | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | |
with: | |
node-version: "20.x" | |
- name: Get npm cache directory | |
id: npm-cache-dir | |
shell: pwsh | |
run: | | |
"dir=$(npm config get cache --global)" >> ${env:GITHUB_OUTPUT} | |
$cultureInfo = [System.Globalization.CultureInfo]::InvariantCulture | |
$date = get-date | |
$weeknumber = $cultureInfo.Calendar.GetWeekOfYear($date,$cultureInfo.DateTimeFormat.CalendarWeekRule,$cultureInfo.DateTimeFormat.FirstDayOfWeek) | |
"$weeknumber-$($date.Year)" >> renovate-cache-lock.txt | |
npm show renovate version >> renovate-lock.txt | |
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 | |
with: | |
path: ${{ steps.npm-cache-dir.outputs.dir }} | |
key: npm-cache-${{ hashFiles('renovate-lock.txt') }} | |
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 | |
with: | |
path: "./.renovateCache" | |
key: renovate-cache-${{ hashFiles('renovate-cache-lock.txt') }} | |
- name: Runs renovate against this repository. | |
run: | | |
git config --global user.email 'bot@renovateapp.com' | |
git config --global user.name 'Renovate Bot' | |
npm install renovate | |
npm exec -- renovate --platform=github --include-forks=true --enabled-managers="npm,azure-pipelines,github-actions" $env:REPOSITORY | |
env: | |
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }} | |
REPOSITORY: ${{ github.repository }} | |
RENOVATE_CACHE_DIR: "./.renovateCache" | |
LOG_LEVEL: "debug" |