mirror of
https://github.com/iptv-org/iptv
synced 2025-12-16 10:26:48 -05:00
Update format.yml
This commit is contained in:
6
.github/workflows/format.yml
vendored
6
.github/workflows/format.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user