-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auto-delete dependency update branch when merged
- Loading branch information
1 parent
7f25d8f
commit ff60a58
Showing
1 changed file
with
10 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,16 +19,6 @@ jobs: | |
- name: Install Poetry | ||
run: pip install poetry | ||
|
||
- name: Create or Checkout Branch | ||
run: | | ||
git fetch origin | ||
if git rev-parse --verify origin/dependabot/update-dependencies; then | ||
git checkout dependabot/update-dependencies | ||
git pull origin dependabot/update-dependencies | ||
else | ||
git checkout -b dependabot/update-dependencies | ||
fi | ||
- name: Update dependencies | ||
run: | | ||
poetry install | ||
|
@@ -51,4 +41,13 @@ jobs: | |
token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: dependabot/update-dependencies | ||
title: "Update dependencies" | ||
body: "This is an automated pull request to update dependencies." | ||
body: "This is an automated pull request to update dependencies." | ||
delete-branch: true | ||
|
||
# - name: Auto-merge Pull Request | ||
# uses: pascalgn/[email protected] | ||
# with: | ||
# token: ${{ secrets.GITHUB_TOKEN }} | ||
# merge-method: squash | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |