From f486affb57c296a749d6cded78ffa6d99ba1f2cf Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Mon, 8 Nov 2021 16:12:52 +0300 Subject: [PATCH] Update auto-update.yml --- .github/workflows/auto-update.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index 35d7ee33..8352098f 100644 --- a/.github/workflows/auto-update.yml +++ b/.github/workflows/auto-update.yml @@ -4,8 +4,21 @@ on: schedule: - cron: '0 0 * * *' jobs: + delete-branch: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + ref: ${{ github.ref }} + - name: Delete Branch + uses: dawidd6/action-delete-branch@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branches: 'bot/auto-update' create-branch: runs-on: ubuntu-latest + needs: delete-branch steps: - name: Checkout uses: actions/checkout@v2