From cec5581a83263468dc1ce95ff8fd048cd8e25022 Mon Sep 17 00:00:00 2001 From: freearhey Date: Tue, 9 Feb 2021 10:05:21 +0300 Subject: [PATCH] Remove extra steps --- .github/workflows/auto-update.yml | 52 +++++++++---------------------- 1 file changed, 15 insertions(+), 37 deletions(-) diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index 33afa4084..9ba737445 100644 --- a/.github/workflows/auto-update.yml +++ b/.github/workflows/auto-update.yml @@ -13,27 +13,16 @@ jobs: run: npm install - name: Format Playlists run: node scripts/format.js - - name: Create Pull Request - uses: peter-evans/create-pull-request@v3 - with: - token: ${{ secrets.REPO_SCOPED_TOKEN }} - commit-message: 'Format playlists' - branch: bot-patch - title: '[Bot] Format playlists' - labels: automerge - body: | - This pull request is auto-generated by GitHub action. - merge-format: - runs-on: ubuntu-latest - needs: format - steps: - - name: Merge Pull Request - uses: 'pascalgn/automerge-action@v0.13.0' - env: - GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' + - name: Commit Changes + run: | + git config user.name github-actions + git config user.email github-actions@github.com + git add . + git commit -m "[Bot] Format playlists" + git push generate: runs-on: ubuntu-latest - needs: merge-format + needs: format steps: - name: Checkout uses: actions/checkout@v2 @@ -58,21 +47,10 @@ jobs: run: npm install - name: Update README.md run: node scripts/update-readme.js - - name: Create Pull Request - uses: peter-evans/create-pull-request@v3 - with: - token: ${{ secrets.REPO_SCOPED_TOKEN }} - commit-message: 'Update README.md' - branch: bot-patch - title: '[Bot] Update README.md' - labels: automerge - body: | - This pull request is auto-generated by GitHub action. - merge-readme: - runs-on: ubuntu-latest - needs: update-readme - steps: - - name: Merge Pull Request - uses: 'pascalgn/automerge-action@v0.13.0' - env: - GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' + - name: Commit Changes + run: | + git config user.name github-actions + git config user.email github-actions@github.com + git add . + git commit -m "[Bot] Update README.md" + git push