From 2374fac9b4a602747768cac528b88b993bc66250 Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Fri, 13 Feb 2026 12:53:20 +0300 Subject: [PATCH] Update update.yml --- .github/workflows/update.yml | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 26255c8b..cf94890a 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -32,17 +32,28 @@ jobs: run: npm run channels:lint - name: update sites.md run: npm run sites:update - env: - GH_TOKEN: ${{ steps.create-app-token.outputs.token }} - run: git status - name: commit changes to sites.md if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} run: | - SITE=SITES.md - CHANGED=$(git diff ${SITE}) + FILE=SITES.md + CHANGED=$(git diff ${FILE}) if [ -n "${CHANGED}" ]; then - git add ${SITE} - git commit -m "[Bot] Update ${SITE}" -m "Committed by [iptv-bot](https://github.com/apps/iptv-bot) via [update](https://github.com/iptv-org/epg/actions/runs/${{ github.run_id }}) workflow." --no-verify + git add ${FILE} + git commit -m "[Bot] Update ${FILE}" -m "Committed by [iptv-bot](https://github.com/apps/iptv-bot) via [update](https://github.com/iptv-org/epg/actions/runs/${{ github.run_id }}) workflow." --no-verify + git push + fi + - name: update guides.md + run: npm run guides:update + - run: git status + - name: commit changes to guides.md + if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} + run: | + FILE=GUIDES.md + CHANGED=$(git diff ${FILE}) + if [ -n "${CHANGED}" ]; then + git add ${FILE} + git commit -m "[Bot] Update ${FILE}" -m "Committed by [iptv-bot](https://github.com/apps/iptv-bot) via [update](https://github.com/iptv-org/epg/actions/runs/${{ github.run_id }}) workflow." --no-verify git push fi - name: generate .api/guides.json