Renovate #289
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: | |
schedule: | |
- cron: "0 11 * * *" # 3 AM PST = 11 AM UDT | |
workflow_dispatch: | |
# PR open and close use the same group, allowing only one at a time | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
renovate: | |
env: | |
config: renovate.json | |
permissions: | |
pull-requests: write | |
runs-on: ubuntu-22.04 | |
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", "bcgov/quickstart-openshift"]' | |
run: | | |
cat <<< $(jq '.+= {"dryRun": "full"}' ${{ env.config }}) > ${{ env.config }} | |
cat <<< $(jq '. | .repositories = ${{ env.repos }}' ${{ env.config }}) > ${{ env.config }} | |
cat ${{ env.config }} | jq .repositories | |
- name: Self-hosted Renovate | |
uses: renovatebot/github-action@v39.0.1 | |
with: | |
configurationFile: ${{ env.config }} | |
token: ${{ secrets.RENOVATE_TOKEN }} |