Skip to content

Commit

Permalink
Revert "Use grouped version updates for Dependabot (#15920)" (#15932)
Browse files Browse the repository at this point in the history
  • Loading branch information
miketheman authored May 10, 2024
1 parent 128272a commit 20d0a8f
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 6 deletions.
4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ updates:
# Keep both psycopg and psycopg-c together
patterns:
- "psycopg*"
python-package:
# Keep rest of package together
patterns:
- "*"
- package-ecosystem: github-actions
directory: "/"
schedule:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:
merge_group:
types: [checks_requested]
workflow_dispatch:
workflow_dispatch: # generally only for the "combine-prs" workflow
permissions:
id-token: write
contents: read
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/combine-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Origin: https://github.com/marketplace/actions/combine-prs

name: 'Combine PRs'

# Controls when the action will run - in this case triggered manually
on:
workflow_dispatch:
inputs:
ignoreLabel:
description: 'Exclude PRs with this label'
required: true
default: 'blocked'

# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
permissions:
contents: write
pull-requests: write
checks: read
actions: write

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "combine-prs"
combine-prs:
# The type of runner that the job will run on
runs-on: ubuntu-latest

steps:
- name: Use GitHub App Token
uses: wow-actions/[email protected]
id: generate_token
with:
app_id: ${{ secrets.COMBINE_PRS_APP_ID }}
private_key: ${{ secrets.COMBINE_PRS_PRIVATE_KEY }}
fallback: ${{ secrets.GITHUB_TOKEN }} # fall back to the default token if the app token is

- name: combine-prs
id: combine-prs
uses: github/[email protected]
with:
github_token: ${{ steps.generate_token.outputs.BOT_TOKEN }}
ignore_label: ${{ github.event.inputs.ignoreLabel || 'blocked' }}
2 changes: 1 addition & 1 deletion .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:
merge_group:
types: [checks_requested]
workflow_dispatch:
workflow_dispatch: # generally only for the "combine-prs" workflow
permissions:
contents: read
concurrency:
Expand Down

0 comments on commit 20d0a8f

Please sign in to comment.