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 run: npm run channels:lint
- name: update sites.md - name: update sites.md
run: npm run sites:update run: npm run sites:update
env:
GH_TOKEN: ${{ steps.create-app-token.outputs.token }}
- run: git status - run: git status
- name: commit changes to sites.md - name: commit changes to sites.md
if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} if: ${{ !env.ACT && github.ref == 'refs/heads/master' }}
run: | run: |
SITE=SITES.md FILE=SITES.md
CHANGED=$(git diff ${SITE}) CHANGED=$(git diff ${FILE})
if [ -n "${CHANGED}" ]; then if [ -n "${CHANGED}" ]; then
git add ${SITE} git add ${FILE}
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 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 git push
fi fi
- name: generate .api/guides.json - name: generate .api/guides.json