From 9d0512ebcffc4dd22f7bd3ff77491d018ba80e4a Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Wed, 24 May 2023 23:19:53 +0300 Subject: [PATCH] Revert "Update update.yml" This reverts commit 20f40e46c751c6f7a1405f17211005b0228504cd. --- .github/workflows/update.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index e0f6a779..9a096f4c 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -16,13 +16,26 @@ jobs: - run: npm install - run: GITHUB_TOKEN=${{ steps.create-app-token.outputs.token }} npm run db:update --silent >> $GITHUB_OUTPUT id: issue-process - - name: Validate Changes - run: npm run db:validate -- data/channels.csv - name: Commit Changes run: | git config user.name ${{ github.actor }} git config user.email '${{ github.actor }}@users.noreply.github.com' git add data/channels.csv - git commit -m "[Bot] Update channels.csv" -m "Committed by [iptv-bot](https://github.com/apps/iptv-bot) via [update](https://github.com/iptv-org/database/actions/runs/${{ github.run_id }}) workflow." -m "${{ steps.issue-process.outputs.OUTPUT }}" --no-verify + git commit -m "[Bot] Update channels.csv" --no-verify git status - git push + - name: Create Pull Request + uses: peter-evans/create-pull-request@v5 + with: + token: ${{ steps.create-app-token.outputs.token }} + branch: bot/patch + branch-suffix: timestamp + delete-branch: true + add-paths: | + data/*.csv + title: '[Bot] Update database' + body: | + This pull request is created by [update][1] workflow. + + ${{ steps.issue-process.outputs.OUTPUT }} + + [1]: https://github.com/iptv-org/database/actions/runs/${{ github.run_id }}