Skip to content

Commit

Permalink
Fix git fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
dixyes committed Oct 1, 2023
1 parent 27fe450 commit 85b1b0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linux-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ jobs:
# prepare lwmbs
cd /lwmbs
git remote set-url origin "https://github.com/${{ inputs.workflowRepo || github.repository }}"
git fetch origin ${{ inputs.workflowRev || github.sha }}
git checkout ${{ inputs.workflowRev || github.sha }}
git fetch --depth 1 origin ${{ inputs.workflowRev || github.sha }}
git checkout FETCH_HEAD
cd /
php /lwmbs/fetch_source.php \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ jobs:
if (0 -Ne $lastexitcode) {
exit 1
}
git checkout ${{ inputs.workflowRev || github.sha }}
git checkout FETCH_HEAD
if (0 -Ne $lastexitcode) {
exit 1
}
Expand Down

0 comments on commit 85b1b0f

Please sign in to comment.