mirror of
https://github.com/AuxXxilium/arc-modules.git
synced 2024-11-23 14:51:01 +07:00
build: update
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
8c004bd81f
commit
fb8bf9e84c
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
@ -20,9 +20,13 @@ on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: "format %y.%-m.$i or auto"
|
||||
description: "format %y.%m.$d or auto"
|
||||
required: false
|
||||
type: string
|
||||
latest:
|
||||
description: "latest"
|
||||
default: true
|
||||
type: boolean
|
||||
prerelease:
|
||||
description: "pre release"
|
||||
default: false
|
||||
@ -235,12 +239,7 @@ jobs:
|
||||
if [ -n "${{ inputs.version }}" ]; then
|
||||
VERSION="${{ inputs.version }}"
|
||||
else
|
||||
LATEST_TAG="`curl -skL "https://api.github.com/repos/${{ github.repository }}/releases/latest" | jq -r ".tag_name" 2>/dev/null`"
|
||||
if [[ -n "${LATEST_TAG}" && "`echo ${LATEST_TAG} | cut -d '.' -f 1,2`" = "`date +'%y.%-m.%-d'`" ]]; then # format %y.%-m.$i
|
||||
VERSION="`echo ${LATEST_TAG} | awk -F '.' '{$3=$3+1}1' OFS='.'`"
|
||||
else
|
||||
VERSION="`date +'%y.%-m.%-d'`"
|
||||
fi
|
||||
VERSION="`date +'%y.%m.%d'`"
|
||||
fi
|
||||
|
||||
if [ -n "${VERSION}" ]; then
|
||||
@ -262,6 +261,7 @@ jobs:
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
tag: ${{ env.VERSION }}
|
||||
makeLatest: ${{ inputs.latest }}
|
||||
prerelease: ${{ inputs.prerelease }}
|
||||
allowUpdates: true
|
||||
body: |
|
||||
|
Loading…
Reference in New Issue
Block a user