build(ci) enable unstable version of qbittorrent for build.yml
This commit is contained in:
parent
76b328d04f
commit
889566da16
1 changed files with 8 additions and 4 deletions
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
|
|
@ -13,12 +13,16 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
new_ver: ${{ steps.check_ver.outputs.new_ver }}
|
new_ver: ${{ steps.check_ver.outputs.new_ver }}
|
||||||
|
latest: ${{ steps.check_ver.outputs.latest }}
|
||||||
steps:
|
steps:
|
||||||
- name: Check version
|
- name: Check version
|
||||||
id: check_ver
|
id: check_ver
|
||||||
run: |
|
run: |
|
||||||
NEW_TAG=$(curl -s "${REPO_TAGS}" | grep -Po "release-(\d+\.){2}\d+\.zip" | head -1)
|
NEW_TAG=$(curl -s "${REPO_TAGS}" | grep -Po "(\d+\.)+\d+(|beta\d+|rc\d+)\.zip" | head -1)
|
||||||
echo "::set-output name=new_ver::${NEW_TAG:8:5}"
|
if echo "${NEW_TAG%.zip}-r0" | grep -Pq "^(\d+\.)+\d+$"; then
|
||||||
|
echo "::set-output name=latest::type=raw,latest"
|
||||||
|
fi
|
||||||
|
echo "::set-output name=new_ver::${NEW_TAG%.zip}-r0"
|
||||||
env:
|
env:
|
||||||
REPO_TAGS: https://github.com/qbittorrent/qBittorrent/tags
|
REPO_TAGS: https://github.com/qbittorrent/qBittorrent/tags
|
||||||
|
|
||||||
|
|
@ -44,8 +48,8 @@ jobs:
|
||||||
tags: |
|
tags: |
|
||||||
type=edge
|
type=edge
|
||||||
type=schedule,pattern={{date 'YYYYMMDD'}}
|
type=schedule,pattern={{date 'YYYYMMDD'}}
|
||||||
type=raw,${{ needs.check.outputs.new_ver }}-r0
|
type=raw,${{ needs.check.outputs.new_ver }}
|
||||||
type=raw,latest
|
${{ needs.check.outputs.latest }}
|
||||||
|
|
||||||
- name: Save status
|
- name: Save status
|
||||||
run: echo ${{ toJSON(steps.meta.outputs.json) }} > ${{ github.workspace }}/status.json
|
run: echo ${{ toJSON(steps.meta.outputs.json) }} > ${{ github.workspace }}/status.json
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue