We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 424059e commit 844c24fCopy full SHA for 844c24f
.github/workflows/mirror.yml
@@ -32,13 +32,14 @@ jobs:
32
33
- name: update-mirror
34
run: |
35
+ git switch -d
36
git remote add ${{ inputs.remote_name }} ${{ inputs.fetch_url }} 2>/dev/null || \
37
git remote set-url ${{ inputs.remote_name }} ${{ inputs.fetch_url }}
38
target_branch=mirror/${{ inputs.remote_name }}/${{ inputs.branch }}
39
git remote prune origin
40
git remote prune ${{ inputs.remote_name }}
41
git fetch ${{ inputs.remote_name }} ${{ inputs.branch }}:$target_branch -f
- git checkout $target_branch
42
+ git switch $target_branch
43
44
if [[ "${{ inputs.patch_ci }}" == "true" ]]; then
45
git fetch origin "${{ inputs.ci_branch }}" --depth=1
0 commit comments