Skip to content

Commit 8de67b2

Browse files
committed
💚 Fix ci again
1 parent d710731 commit 8de67b2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/update_dependencies.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,16 @@ jobs:
2424
steps:
2525
- uses: actions/checkout@v4
2626
name: Checkout repository
27+
with:
28+
fetch-depth: 0 # Fetch all history for all branches
2729
- name: Checkout target branch
2830
if: inputs.pr_branch
2931
run: |
30-
BRANCH_NAME=$(echo ${{ inputs.pr_branch }} | cut -d'/' -f 3)
32+
BRANCH_NAME=$(echo ${{ inputs.pr_branch }} | sed 's|refs/heads/||')
33+
git fetch origin $BRANCH_NAME
3134
git checkout $BRANCH_NAME
35+
git pull origin $BRANCH_NAME
36+
3237
- name: Setup PDM
3338
uses: pdm-project/setup-pdm@v4
3439
with:

0 commit comments

Comments
 (0)