forked from External/mediamtx
fix hls.js update workflow (#3538)
This commit is contained in:
parent
1a4fd9cfca
commit
c3265a554b
1 changed files with 3 additions and 3 deletions
6
.github/workflows/bump_hls_js.yml
vendored
6
.github/workflows/bump_hls_js.yml
vendored
|
|
@ -29,16 +29,16 @@ jobs:
|
||||||
|
|
||||||
- id: check_repo
|
- id: check_repo
|
||||||
run: >
|
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: >
|
run: >
|
||||||
git reset ${GITHUB_REF_NAME}
|
git reset ${GITHUB_REF_NAME}
|
||||||
&& git add .
|
&& git add .
|
||||||
&& git commit -m "bump hls.js to ${VERSION}"
|
&& git commit -m "bump hls.js to ${VERSION}"
|
||||||
&& git push --set-upstream origin deps/hlsjs --force
|
&& 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
|
uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue