Skip to content

Commit

Permalink
Revert "Use grouped version updates for Dependabot (#15920)"
Browse files Browse the repository at this point in the history
This reverts commit 8c51e0a.
  • Loading branch information
miketheman authored May 10, 2024
1 parent 128272a commit a63bdba
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/use-app-token@v2.0.2
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/combine-prs@v5.0.0
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 a63bdba

Please sign in to comment.