Skip to content

Commit

Permalink
Merge pull request #311 from XMOJ-Script-dev/small-fix
Browse files Browse the repository at this point in the history
A Small fix
  • Loading branch information
boomzero authored Dec 19, 2023
2 parents 0baf4ed + 7e5cc54 commit 7dada97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Update/UpdateToRelease.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ var NewJSFileContent = JSFileContent.replace(/@version(\s+)\d+\.\d+\.\d+/, "@ver
writeFileSync(JSFileName, NewJSFileContent, "utf8");
console.warn("XMOJ.user.js has been updated.");

execSync("git config pull.rebase false");
execSync("git pull");
execSync("git push origin --delete actions/temp || true");
execSync("git checkout -b actions/temp");
Expand Down
1 change: 1 addition & 0 deletions Update/UpdateVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ writeFileSync(JSONFileName, JSON.stringify(JSONObject, null, 4), "utf8");

console.warn("Update.json has been updated.");

execSync("git config pull.rebase false");
execSync("git pull");
execSync("git commit -a -m \"" + CommitMessage + "\"");
execSync("git push -f");
Expand Down

0 comments on commit 7dada97

Please sign in to comment.