Configured dependency version locking and updated Renovate auto-merge… #50
Workflow file for this run
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: | |
pull_request: | |
branches: ["main"] | |
paths: | |
- .github/renovate-bot.json5 | |
- .github/renovate.json5 | |
- .github/renovate/**.json5 | |
repository: | |
- "github.com/facebookincubator/TTPForge" | |
merge_group: | |
push: | |
branches: ["main"] | |
paths: | |
- .github/renovate-bot.json5 | |
- .github/renovate.json5 | |
- .github/renovate/**.json5 | |
workflow_dispatch: | |
inputs: | |
dryRun: | |
description: "Dry-Run" | |
default: "false" | |
required: false | |
logLevel: | |
description: "Log-Level" | |
default: "debug" | |
required: false | |
schedule: | |
# Run once per week - at 00:00 on Sunday | |
- cron: "0 0 * * 0" | |
env: | |
LOG_LEVEL: debug | |
RENOVATE_DRY_RUN: false | |
RENOVATE_CONFIG_FILE: .github/renovate-bot.json5 | |
jobs: | |
renovate: | |
name: Renovate | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up git repository | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
token: "${{ secrets.BOT_TOKEN }}" | |
- name: Override default config from dispatch variables | |
run: | | |
echo "RENOVATE_DRY_RUN=${{ github.event.inputs.dryRun || env.RENOVATE_DRY_RUN }}" >> "${GITHUB_ENV}" | |
echo "LOG_LEVEL=${{ github.event.inputs.logLevel || env.LOG_LEVEL }}" >> "${GITHUB_ENV}" | |
- name: Delete old dashboard | |
run: | | |
ISSUE_NUMBER=$(gh issue list -S 'Renovate Dashboard 🤖' --json number -q '.[0].number') | |
if [ "$ISSUE_NUMBER" != "null" ] && [ -n "$ISSUE_NUMBER" ]; then | |
gh issue close "$ISSUE_NUMBER" | |
else | |
echo "No issue found to close." | |
fi | |
env: | |
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} | |
- name: Renovate | |
uses: renovatebot/github-action@89c8a9b60f5bc8395658abab8f40f96e4b490ebf # v39.1.0 | |
with: | |
configurationFile: "${{ env.RENOVATE_CONFIG_FILE }}" | |
token: "${{ secrets.BOT_TOKEN }}" |