Skip to content

Commit

Permalink
auto-delete dependency update branch when merged
Browse files Browse the repository at this point in the history
  • Loading branch information
mikel-brostrom committed Jun 14, 2024
1 parent 7f25d8f commit ff60a58
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/automerge-action@v0.16.3
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# merge-method: squash
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ff60a58

Please sign in to comment.