mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 10:10:45 +08:00
fix: res-update-game.yml
This commit is contained in:
3
.github/workflows/res-update-game.yml
vendored
3
.github/workflows/res-update-game.yml
vendored
@@ -35,7 +35,6 @@ jobs:
|
||||
|
||||
git config user.name "$env:GITHUB_ACTOR"
|
||||
git config user.email "$env:GITHUB_ACTOR@users.noreply.github.com"
|
||||
git add .
|
||||
|
||||
$commit_msg = "${{ github.event.inputs.commit_message }}"
|
||||
if (-not [string]::IsNullOrWhiteSpace($commit_msg)) {
|
||||
@@ -43,7 +42,7 @@ jobs:
|
||||
} else {
|
||||
$commit_msg = "chore: Auto Update Game Resources - $(Get-Date -Format 'yyyy-MM-dd')"
|
||||
}
|
||||
git commit -m "$commit_msg"
|
||||
git commit -am "$commit_msg"
|
||||
if ($LASTEXITCODE) { exit $LASTEXITCODE }
|
||||
|
||||
git pull origin $(git rev-parse --abbrev-ref HEAD) --unshallow --rebase
|
||||
|
||||
Reference in New Issue
Block a user