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:
@@ -55,7 +55,7 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 2
|
fetch-depth: 50
|
||||||
|
|
||||||
- name: Check if version changed or src changed
|
- name: Check if version changed or src changed
|
||||||
id: check
|
id: check
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ function getGitShortCommit() {
|
|||||||
*/
|
*/
|
||||||
function getLatestTauriCommit() {
|
function getLatestTauriCommit() {
|
||||||
try {
|
try {
|
||||||
const fullHash = execSync("./scripts-workflow/get_latest_tauri_commit.bash")
|
const fullHash = execSync("bash ./scripts-workflow/get_latest_tauri_commit.bash")
|
||||||
.toString()
|
.toString()
|
||||||
.trim();
|
.trim();
|
||||||
return execSync(`git rev-parse --short ${fullHash}`).toString().trim();
|
return execSync(`git rev-parse --short ${fullHash}`).toString().trim();
|
||||||
|
|||||||
Reference in New Issue
Block a user