From 3303cd71730a350fd5f0cb790e275fb8714cb89c Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sat, 27 Nov 2021 01:31:02 +0300 Subject: [PATCH] Update auto-update.yml --- .github/workflows/auto-update.yml | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index d998841ed..4871d8c61 100644 --- a/.github/workflows/auto-update.yml +++ b/.github/workflows/auto-update.yml @@ -4,33 +4,24 @@ on: schedule: - cron: '0 0,12 * * *' jobs: - delete-old-branch: - runs-on: ubuntu-latest - continue-on-error: true - 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-old-branch steps: - name: Checkout uses: actions/checkout@v2 with: ref: ${{ github.ref }} + - name: Set Branch Name + id: set-branch-name + run: echo "::set-output name=branch_name::bot/auto-update" - name: Create Branch uses: peterjgrainger/action-create-branch@v2.0.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - branch: 'bot/auto-update' + branch: ${{ steps.set-branch-name.outputs.branch_name }} + - name: Exit + run: exit 1 create-matrix: runs-on: ubuntu-latest needs: create-branch