Skip to content

Commit baf958e

Browse files
committed
github-actions: fix checkout action v5 v6 changes
1 parent 241b599 commit baf958e

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,7 @@ jobs:
1818
with:
1919
fetch-depth: 0
2020
ref: "${{ github.event.inputs.git_rev }}"
21-
22-
- name: Checkout submodules
23-
shell: bash
24-
run: |
25-
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
26-
git submodule sync --recursive
27-
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
21+
submodule: true
2822

2923
- name: Install the latest version of uv
3024
uses: astral-sh/setup-uv@v7

.github/workflows/publish_post.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,9 @@ jobs:
1313
steps:
1414
- name: Check out
1515
uses: actions/checkout@v6
16-
17-
- name: Checkout submodules
18-
shell: bash
19-
run: |
20-
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
21-
git submodule sync --recursive
22-
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
16+
with:
17+
ref: "${{ github.event.inputs.git_rev }}"
18+
submodule: true
2319

2420
- name: Install the latest version of uv
2521
uses: astral-sh/setup-uv@v7

0 commit comments

Comments
 (0)