feat: limit PR dry runs to only two repos + action update #280
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: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "0 11 * * *" # 3 AM PST = 11 AM UDT | |
workflow_dispatch: | |
env: | |
config: renovate.json | |
jobs: | |
renovate: | |
runs-on: ubuntu-22.04 | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v3 | |
# PRs should always use dry run | |
- name: Set dry run and repo list | |
if: github.event_name == 'pull_request' | |
env: | |
repos: '["bcgov/nr-renovate"]' | |
run: | | |
cat <<< $(jq '. | .repositories = ${{ env.repos }}' ${{ env.config }}) > ${{ env.config }} | |
- name: Self-hosted Renovate | |
uses: renovatebot/github-action@v34.149.0 | |
with: | |
configurationFile: ${{ env.config }} | |
token: ${{ secrets.RENOVATE_TOKEN }} |