diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index d998841ed8..4871d8c617 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