Update update.yml

This commit is contained in:
freearhey
2026-02-13 12:53:20 +03:00
parent 8f43348a2f
commit 2374fac9b4

View File

@@ -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