Skip to content

Commit

Permalink
update build
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSlabbert committed Jan 14, 2025
1 parent 1926cf1 commit 9541c51
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ updates:
- "git-version-extension"
labels:
- "dependencies"
- "automerge"
groups:
updates:
patterns:
Expand All @@ -30,6 +31,7 @@ updates:
open-pull-requests-limit: 10
labels:
- "dependencies"
- "automerge"
groups:
updates:
patterns:
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/automerge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: "Auto Merge Dependabot PRs"
"on":
pull_request:
types:
- "labeled"
- "opened"
- "synchronize"
jobs:
auto-merge:
if: "${{ github.actor == 'dependabot[bot]' }} || ${{ github.actor == 'BenSlabbert'\
\ }}"
runs-on: "ubuntu-latest"
env:
GH_TOKEN: "${{ secrets.GH_TOKEN }}"
steps:
- name: "Checkout repository"
uses: "actions/checkout@v4"
- name: "Auto-merge Dependabot PRs"
run: "PR_LABEL=$(gh pr view ${{ github.event.pull_request.number }} --json labels\
\ --jq '.labels[].name' | grep -i 'automerge')\nif [ \"$PR_LABEL\" == \"automerge\"\
\ ]; then\n gh pr merge ${{ github.event.pull_request.number }} --rebase\
\ --auto\nfi\n"
20 changes: 20 additions & 0 deletions .github/workflows/autoupdate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: "Rebase PRs on Main Merge"
"on":
push:
branches:
- "main"
jobs:
rebase:
runs-on: "ubuntu-latest"
env:
GH_TOKEN: "${{ secrets.GH_TOKEN }}"
steps:
- name: "Checkout repository"
uses: "actions/checkout@v2"
- name: "List open pull requests"
id: "list-prs"
run: "gh pr list --state open --json number -q '.[] | [.number] | @tsv' > prs.tsv\n"
- name: "Rebase each pull request"
run: "while IFS=$'\\t' read -r number\ndo\n echo \"Rebasing PR #$number\"\n\
\ gh pr update-branch $number --rebase\ndone < prs.tsv\n"

0 comments on commit 9541c51

Please sign in to comment.