mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2025-02-23 13:32:15 +00:00
update auto_release workflow
This commit is contained in:
parent
9bf55b813b
commit
2ffc1ff081
2
.github/workflows/auto_release.yml
vendored
2
.github/workflows/auto_release.yml
vendored
|
@ -40,7 +40,7 @@ jobs:
|
|||
run: |
|
||||
LATEST_TAG=$(curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
||||
https://api.github.com/repos/${{ github.repository }}/tags | \
|
||||
jq -r --arg FOLDER "$FOLDER_CHANGED" '.[] | select(.name | startswith($FOLDER)) | .name' | head -1)
|
||||
jq -r --arg FOLDER "$FOLDER_CHANGED" --arg VERSION "$SEAFILE_VERSION" '.[] | select(.name | startswith($FOLDER + "-" + $VERSION)) | .name' | sort -V | tail -1)
|
||||
|
||||
if [[ $LATEST_TAG ]]; then
|
||||
PREVIOUS_BUILD=$(echo $LATEST_TAG | awk -F_ '{print $3}')
|
||||
|
|
Loading…
Reference in a new issue