mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-31 22:06:59 +00:00
Fix: CICD
This commit is contained in:
2
.github/workflows/build_all.yml
vendored
2
.github/workflows/build_all.yml
vendored
@@ -96,7 +96,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- name: Get the version and date
|
- name: Get the version and date
|
||||||
run: |
|
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
|
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
|
||||||
ver="PR-${{ github.event.number }}"
|
ver="PR-${{ github.event.number }}"
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ fi
|
|||||||
# Get version information
|
# Get version information
|
||||||
echo -e "${YELLOW}Getting version information...${NC}"
|
echo -e "${YELLOW}Getting version information...${NC}"
|
||||||
if [[ -f "version.inc" ]]; then
|
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"
|
VER="V$VER_PURE"
|
||||||
DATE=$(date +'%Y%m%d')
|
DATE=$(date +'%Y%m%d')
|
||||||
echo -e "Version: ${GREEN}$VER${NC}"
|
echo -e "Version: ${GREEN}$VER${NC}"
|
||||||
|
|||||||
Reference in New Issue
Block a user