Fix: CICD

This commit is contained in:
xiaoyeliu
2025-11-17 10:18:39 +08:00
parent 2bdd52a56e
commit 82174ea2d1
2 changed files with 2 additions and 2 deletions

View File

@@ -96,7 +96,7 @@ jobs:
- uses: actions/checkout@v5
- name: Get the version and date
run: |
ver_pure=$(grep 'set(SoftFever_VERSION' version.inc | cut -d '"' -f2)
ver_pure=$(grep 'set(Snapmaker_VERSION' version.inc | cut -d '"' -f2)
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
ver="PR-${{ github.event.number }}"
else

View File

@@ -208,7 +208,7 @@ fi
# Get version information
echo -e "${YELLOW}Getting version information...${NC}"
if [[ -f "version.inc" ]]; then
VER_PURE=$(grep 'set(SoftFever_VERSION' version.inc | cut -d '"' -f2)
VER_PURE=$(grep 'set(Snapmaker_VERSION' version.inc | cut -d '"' -f2)
VER="V$VER_PURE"
DATE=$(date +'%Y%m%d')
echo -e "Version: ${GREEN}$VER${NC}"