Update format.yml

This commit is contained in:
freearhey
2025-03-16 05:12:39 +03:00
parent 37e4474828
commit 56d94e84ff

View File

@@ -42,7 +42,7 @@ jobs:
npm run playlist:lint
npm run playlist:validate
- name: changed files
id: files
id: files_after
run: |
FILES=streams/*.m3u
ANY_CHANGED=false
@@ -55,13 +55,13 @@ jobs:
- name: git status
run: git status
- name: commit changes
if: steps.files.outputs.any_changed == 'true'
if: steps.files_after.outputs.any_changed == 'true'
run: |
git add streams
git status
git commit -m "[Bot] Format /streams" -m "Committed by [iptv-bot](https://github.com/apps/iptv-bot) via [format](https://github.com/iptv-org/iptv/actions/runs/${{ github.run_id }}) workflow." --no-verify
- name: push all changes to the repository
if: ${{ !env.ACT && github.ref == 'refs/heads/master' && steps.files.outputs.any_changed == 'true' }}
if: ${{ !env.ACT && github.ref == 'refs/heads/master' && steps.files_after.outputs.any_changed == 'true' }}
run: git push
on_merge:
if: github.event.pull_request.merged == true