From c3265a554b9fee511abee4b901047b3a4045bea0 Mon Sep 17 00:00:00 2001 From: Alessandro Ros Date: Mon, 8 Jul 2024 18:06:51 +0200 Subject: [PATCH] fix hls.js update workflow (#3538) --- .github/workflows/bump_hls_js.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/bump_hls_js.yml b/.github/workflows/bump_hls_js.yml index 234f3891..10b14d15 100644 --- a/.github/workflows/bump_hls_js.yml +++ b/.github/workflows/bump_hls_js.yml @@ -29,16 +29,16 @@ jobs: - id: check_repo run: > - echo "clean=$(git status --porcelain)" >> "$GITHUB_OUTPUT" + test -n "$(git status --porcelain)" && echo "update=1" >> "$GITHUB_OUTPUT" || echo "update=0" >> "$GITHUB_OUTPUT" - - if: ${{ steps.check_repo.outputs.clean != '' }} + - if: ${{ steps.check_repo.outputs.update == '1' }} run: > git reset ${GITHUB_REF_NAME} && git add . && git commit -m "bump hls.js to ${VERSION}" && git push --set-upstream origin deps/hlsjs --force - - if: ${{ steps.check_repo.outputs.clean != '' }} + - if: ${{ steps.check_repo.outputs.update == '1' }} uses: actions/github-script@v6 with: github-token: ${{ secrets.GITHUB_TOKEN }}