mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-28 07:14:40 +08:00
ci: improve commit checking and update release version script (#4471)
- Increase `fetch-depth` to 50 for more accurate commit history in CI - Update `release-version.mjs` to use `bash` explicitly for improved compatibility - Also avoid errors when invoking the script Signed-off-by: Dragon1573 <49941141+Dragon1573@users.noreply.github.com>
This commit is contained in:
@@ -53,7 +53,7 @@ function getGitShortCommit() {
|
||||
*/
|
||||
function getLatestTauriCommit() {
|
||||
try {
|
||||
const fullHash = execSync("./scripts-workflow/get_latest_tauri_commit.bash")
|
||||
const fullHash = execSync("bash ./scripts-workflow/get_latest_tauri_commit.bash")
|
||||
.toString()
|
||||
.trim();
|
||||
return execSync(`git rev-parse --short ${fullHash}`).toString().trim();
|
||||
|
||||
Reference in New Issue
Block a user