From ff60a582e391402292a76e1e6834054fdfc9b6eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikel=20Brostr=C3=B6m?= Date: Fri, 14 Jun 2024 09:53:45 +0200 Subject: [PATCH] auto-delete dependency update branch when merged --- .github/workflows/update.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index d479411b74..15bf58c4f3 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -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." \ No newline at end of file + 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 }} \ No newline at end of file