mirror of
https://github.com/iptv-org/iptv
synced 2025-12-18 03:17:14 -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:lint
|
||||||
npm run playlist:validate
|
npm run playlist:validate
|
||||||
- name: changed files
|
- name: changed files
|
||||||
id: files
|
id: files_after
|
||||||
run: |
|
run: |
|
||||||
FILES=streams/*.m3u
|
FILES=streams/*.m3u
|
||||||
ANY_CHANGED=false
|
ANY_CHANGED=false
|
||||||
@@ -55,13 +55,13 @@ jobs:
|
|||||||
- name: git status
|
- name: git status
|
||||||
run: git status
|
run: git status
|
||||||
- name: commit changes
|
- name: commit changes
|
||||||
if: steps.files.outputs.any_changed == 'true'
|
if: steps.files_after.outputs.any_changed == 'true'
|
||||||
run: |
|
run: |
|
||||||
git add streams
|
git add streams
|
||||||
git status
|
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
|
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
|
- 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
|
run: git push
|
||||||
on_merge:
|
on_merge:
|
||||||
if: github.event.pull_request.merged == true
|
if: github.event.pull_request.merged == true
|
||||||
|
|||||||
Reference in New Issue
Block a user