From 1f2c1561a8328a4e05f43e013291d207e599dcdc Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 25 May 2023 00:06:29 +0300 Subject: [PATCH 1/3] Update update.yml --- .github/workflows/update.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index e0f6a779..4e366489 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -23,6 +23,6 @@ jobs: 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 diff --quiet && git diff --staged --quiet || 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 status git push From b90d31944ad4ce716d2e51c00f25ce87cd822b63 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 25 May 2023 00:12:16 +0300 Subject: [PATCH 2/3] Update update.yml --- .github/workflows/update.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 4e366489..f232c2c0 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -16,13 +16,12 @@ 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 + if: steps.issue-process.outputs.OUTPUT != 0 run: | git config user.name ${{ github.actor }} git config user.email '${{ github.actor }}@users.noreply.github.com' git add data/channels.csv - git diff --quiet && git diff --staged --quiet || 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" -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 }}" git status git push From b9bd3ed0bd93cb8a755ed1cf1468f9f566211ba0 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 25 May 2023 00:14:54 +0300 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d0977142..03d6b2db 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Database [![check](https://github.com/iptv-org/database/actions/workflows/check.yml/badge.svg)](https://github.com/iptv-org/database/actions/workflows/check.yml) +# Database [![update](https://github.com/iptv-org/database/actions/workflows/update.yml/badge.svg)](https://github.com/iptv-org/database/actions/workflows/update.yml) User editable database for TV channels.