fix hls.js update workflow (#3538)

This commit is contained in:
Alessandro Ros 2024-07-08 18:06:51 +02:00 committed by GitHub
parent 1a4fd9cfca
commit c3265a554b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 }}