From f235fb6c9054332eb7e8a97452b54d56ced4175a Mon Sep 17 00:00:00 2001 From: Derek Roberts Date: Thu, 10 Aug 2023 16:39:36 -0700 Subject: [PATCH] feat: limit PR dry runs to only two repos + action update (#66) * Recude repo list in PRs * Combine jq invocations * Shorten repo list * Re-add bcgov/nr-renovate to repo list * Test w/o dryRun * Update Renovate action --- .github/workflows/renovate.yml | 8 ++++++-- renovate.json | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml index 02e5496..632b92e 100644 --- a/.github/workflows/renovate.yml +++ b/.github/workflows/renovate.yml @@ -20,13 +20,17 @@ jobs: - uses: actions/checkout@v3 # PRs should always use dry run - - name: Dry run for PRs + - 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@v34.149.0 + uses: renovatebot/github-action@v39.0.1 with: configurationFile: ${{ env.config }} token: ${{ secrets.RENOVATE_TOKEN }} diff --git a/renovate.json b/renovate.json index d13562b..4ae3b9a 100644 --- a/renovate.json +++ b/renovate.json @@ -26,6 +26,7 @@ "bcgov/nr-forests-access-management", "bcgov/nr-old-growth", "bcgov/nr-oracle-service", + "bcgov/nr-renovate", "bcgov/nr-rfc-grib-copy", "bcgov/nr-rfc-processing", "bcgov/nr-spar",