From 56d94e84ff6a00d1e1f29e35ce2afa671f91a9e3 Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Sun, 16 Mar 2025 05:12:39 +0300 Subject: [PATCH] Update format.yml --- .github/workflows/format.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index d73c365e39..2e6ae7863d 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -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