Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Aug 11, 2023
1 parent af133cc commit f133da8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ on:
type: string
required: false

# PR open and close use the same group, allowing only one at a time
# Cancel any other workflows (PR, cron or manual)
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

# Variables
env:
config: renovate.json
pr_repos: '["bcgov/nr-renovate", "bcgov/quickstart-openshift"]'
pr_set: '["bcgov/nr-renovate", "bcgov/quickstart-openshift"]'

jobs:
Renovate:
Expand All @@ -34,14 +34,16 @@ jobs:
- name: Config for pull requests
if: github.event_name == 'pull_request'
run: |
# Dry run and short repo list
cat <<< $(jq '.+= {"dryRun": "full"}' ${{ env.config }}) > ${{ env.config }}
cat <<< $(jq '. | .repositories = ${{ env.pr_repos }}' ${{ env.config }}) > ${{ env.config }}
cat <<< $(jq '. | .repositories = ${{ env.pr_set }}' ${{ env.config }}) > ${{ env.config }}
cat ${{ env.config }} | jq .repositories
# workflow_dispatch - optionally just one repo
- name: Config for manual workflows (optional)
if: inputs.repo
run: |
# Set target repo
cat <<< $(jq '. | .repositories = ["${{ inputs.repo }}"]' ${{ env.config }}) > ${{ env.config }}
cat ${{ env.config }} | jq .repositories
Expand Down

0 comments on commit f133da8

Please sign in to comment.