Skip to content

Commit

Permalink
feat: limit PR dry runs to only two repos + action update (#66)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
DerekRoberts authored Aug 10, 2023
1 parent e5c3ce7 commit f235fb6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
1 change: 1 addition & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit f235fb6

Please sign in to comment.