Renovate #4
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 2 * * *' # Runs daily at 2 AM UTC | |
workflow_dispatch: # Allow manual triggering | |
jobs: | |
renovate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # Renovate needs to access full git history | |
- name: Set up SSH key | |
env: | |
SSH_DEPLOY_KEY: ${{ secrets.RENOVATE_DEPLOY_KEY }} | |
run: | | |
mkdir -p ~/.ssh | |
echo "${SSH_DEPLOY_KEY}" > ~/.ssh/id_rsa | |
chmod 600 ~/.ssh/id_rsa | |
ssh-keyscan github.com >> ~/.ssh/known_hosts | |
- name: Run Renovate | |
uses: renovatebot/[email protected] # Use the latest version here | |
with: | |
ssh: true # Enable SSH for pushing | |
env: | |
RENOVATE_CONFIG_FILE: .github/renovate.json # Path to your Renovate config file (optional) |