mirror of
https://github.com/iptv-org/epg
synced 2026-03-21 11:20:53 -04:00
Update update.yml
This commit is contained in:
23
.github/workflows/update.yml
vendored
23
.github/workflows/update.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user