diff --git a/.github/workflows/push-build-check.yml b/.github/workflows/push-build-check.yml index 2033b3f..a9fb3ca 100644 --- a/.github/workflows/push-build-check.yml +++ b/.github/workflows/push-build-check.yml @@ -46,6 +46,6 @@ jobs: $env:Path="$PWD\qt-static\Qt5.6.3-Windows-x86-MinGW4.9.4-staticFull-20200104\bin;$PWD\qt-static\mingw32\bin;$env:Path" qt-static\Qt5.6.3-Windows-x86-MinGW4.9.4-staticFull-20200104\QQtPatcher.exe go mod tidy - go run export/main.go + go run export/main.go check-only cd m3u8d-qt && qmake && mingw32-make release && cd .. dir m3u8d-qt\release\m3u8d-qt.exe diff --git a/export/main.go b/export/main.go index b32ee70..fd3b3da 100644 --- a/export/main.go +++ b/export/main.go @@ -20,8 +20,10 @@ func main() { WriteVersionDotRc("1.5.6") } else { // github actions 编译 CreateLibForQtUi(false) - version := strings.TrimPrefix(os.Getenv("GITHUB_REF_NAME"), "v") - WriteVersionDotRc(version) + if len(os.Args)<=1 || os.Args[1] != "check-only" { + version := strings.TrimPrefix(os.Getenv("GITHUB_REF_NAME"), "v") + WriteVersionDotRc(version) + } } }