Skip to content

Commit ff60a58

Browse files
auto-delete dependency update branch when merged
1 parent 7f25d8f commit ff60a58

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

.github/workflows/update.yml

+10-11
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,6 @@ jobs:
1919
- name: Install Poetry
2020
run: pip install poetry
2121

22-
- name: Create or Checkout Branch
23-
run: |
24-
git fetch origin
25-
if git rev-parse --verify origin/dependabot/update-dependencies; then
26-
git checkout dependabot/update-dependencies
27-
git pull origin dependabot/update-dependencies
28-
else
29-
git checkout -b dependabot/update-dependencies
30-
fi
31-
3222
- name: Update dependencies
3323
run: |
3424
poetry install
@@ -51,4 +41,13 @@ jobs:
5141
token: ${{ secrets.GITHUB_TOKEN }}
5242
branch: dependabot/update-dependencies
5343
title: "Update dependencies"
54-
body: "This is an automated pull request to update dependencies."
44+
body: "This is an automated pull request to update dependencies."
45+
delete-branch: true
46+
47+
# - name: Auto-merge Pull Request
48+
# uses: pascalgn/[email protected]
49+
# with:
50+
# token: ${{ secrets.GITHUB_TOKEN }}
51+
# merge-method: squash
52+
# env:
53+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)