Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

Commit 6e49368

Browse files
committed
Use submodules=true parameter for actions/checkout
1 parent 4476227 commit 6e49368

File tree

2 files changed

+6
-22
lines changed

2 files changed

+6
-22
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,8 @@ jobs:
6060

6161
steps:
6262
- uses: actions/checkout@v2
63-
64-
- name: Checkout submodules
65-
shell: bash
66-
run: |
67-
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
68-
git submodule sync --recursive
69-
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
63+
with:
64+
submodules: true
7065

7166
- name: Build image - ${{ matrix.stage }}
7267
env:
@@ -126,14 +121,8 @@ jobs:
126121

127122
steps:
128123
- uses: actions/checkout@v2
129-
130-
- name: Checkout submodules
131-
shell: bash
132-
run: |
133-
ls -la
134-
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
135-
git submodule sync --recursive
136-
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
124+
with:
125+
submodules: true
137126

138127
- name: Build image - ${{ matrix.stage }}
139128
env:

.github/workflows/packer-templates.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,8 @@ jobs:
1818
runs-on: ubuntu-18.04
1919
steps:
2020
- uses: actions/checkout@v2
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+
with:
22+
submodules: true
2823

2924
- name: Download Packer
3025
run: |

0 commit comments

Comments
 (0)