mirror of
https://github.com/bentoml/OpenLLM.git
synced 2026-05-19 14:16:22 -04:00
chore(ci): fixes release script to correct version
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
This commit is contained in:
19
.github/actions/create_release_and_archive.sh
vendored
19
.github/actions/create_release_and_archive.sh
vendored
@@ -15,9 +15,22 @@
|
||||
|
||||
set -o errexit -o nounset -o pipefail
|
||||
|
||||
# Set by GH actions, see
|
||||
# https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
|
||||
TAG=${GITHUB_REF_NAME#v}
|
||||
TAG="$1"
|
||||
|
||||
semver_regex='^[1-9][0-9]*\.[1-9][0-9]*\.[1-9][0-9]*$'
|
||||
|
||||
# Check if an argument is provided
|
||||
if [ $# -eq 0 ]; then
|
||||
echo "No argument provided."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $TAG =~ $semver_regex ]]; then
|
||||
echo "Valid semver: $TAG"
|
||||
else
|
||||
echo "Invalid semver: $TAG"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cat > release_notes.txt << EOF
|
||||
## Installation
|
||||
|
||||
2
.github/workflows/release-notes.yml
vendored
2
.github/workflows/release-notes.yml
vendored
@@ -50,7 +50,7 @@ jobs:
|
||||
- name: Setup CI
|
||||
uses: ./.github/actions/setup-repo
|
||||
- name: Create release notes
|
||||
run: ./.github/actions/create_release_and_archive.sh
|
||||
run: ./.github/actions/create_release_and_archive.sh ${{ inputs.tags }}
|
||||
- name: Download Python artifacts
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user