Skip to content

Commit 8a59067

Browse files
committed
github action: update checkout to v3
See actions/checkout#762 Our tests are failing as checkout is not working (no git repository found)
1 parent 56f4b4c commit 8a59067

9 files changed

+30
-25
lines changed

.github/workflows/basic_checks.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
steps:
1919
- name: Checkout repo
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v3
2121
with:
2222
fetch-depth: 0
2323

@@ -60,7 +60,7 @@ jobs:
6060

6161
steps:
6262
- name: Checkout repo
63-
uses: actions/checkout@v2
63+
uses: actions/checkout@v3
6464
with:
6565
fetch-depth: 0
6666

@@ -81,7 +81,7 @@ jobs:
8181
steps:
8282

8383
- name: Checkout repo
84-
uses: actions/checkout@v2
84+
uses: actions/checkout@v3
8585
with:
8686
fetch-depth: 0
8787

@@ -111,7 +111,7 @@ jobs:
111111
steps:
112112

113113
- name: Checkout repo
114-
uses: actions/checkout@v2
114+
uses: actions/checkout@v3
115115
with:
116116
fetch-depth: 0
117117

@@ -155,7 +155,7 @@ jobs:
155155
steps:
156156
-
157157
name: Checkout repo
158-
uses: actions/checkout@v2
158+
uses: actions/checkout@v3
159159

160160

161161
- uses: actions/setup-python@v2
@@ -184,7 +184,7 @@ jobs:
184184
steps:
185185
-
186186
name: Checkout repo
187-
uses: actions/checkout@v2
187+
uses: actions/checkout@v3
188188
with:
189189
fetch-depth: 0
190190

@@ -210,7 +210,7 @@ jobs:
210210
steps:
211211
-
212212
name: Checkout repo
213-
uses: actions/checkout@v2
213+
uses: actions/checkout@v3
214214

215215
-
216216
name: cmake build
@@ -237,7 +237,7 @@ jobs:
237237
steps:
238238
-
239239
name: Checkout repo
240-
uses: actions/checkout@v2
240+
uses: actions/checkout@v3
241241
with:
242242
fetch-depth: 0
243243

.github/workflows/docker_management.branch.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
-
3737
name: Checkout
38-
uses: actions/checkout@v2
38+
uses: actions/checkout@v3
3939
with:
4040
fetch-depth: 0
4141

@@ -117,7 +117,7 @@ jobs:
117117

118118
-
119119
name: Checkout
120-
uses: actions/checkout@v2
120+
uses: actions/checkout@v3
121121

122122
-
123123
name: Build docker containers
@@ -164,7 +164,7 @@ jobs:
164164
165165
-
166166
name: Checkout
167-
uses: actions/checkout@v2
167+
uses: actions/checkout@v3
168168

169169
-
170170
name: Find DEV DOCKER DIGEST
@@ -178,7 +178,7 @@ jobs:
178178
# development branch of blinky
179179
-
180180
name: Checkout
181-
uses: actions/checkout@v2
181+
uses: actions/checkout@v3
182182
with:
183183
repository: ARMmbed/mbed-os-example-blinky
184184
path: mbed-os-example-blinky

.github/workflows/docker_management.prune.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414
-
1515
name: Checkout
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v3
1717

1818
-
1919
name: Delete old temporary images
@@ -22,4 +22,4 @@ jobs:
2222
# deletion if only one image exists or if DOCKER_MANAGEMENT_TOKEN is not
2323
# setup. This shouldn't create any alarm as temporary image deletion is
2424
# not a critical activity.
25-
python ./.github/workflows/ci_scripts/ghcr_utils.py -u ${{ github.repository_owner }} -p ${{ secrets.DOCKER_MANAGEMENT_TOKEN }} delete-old-images -r mbed-os-env-tmp || true
25+
python ./.github/workflows/ci_scripts/ghcr_utils.py -u ${{ github.repository_owner }} -p ${{ secrets.DOCKER_MANAGEMENT_TOKEN }} delete-old-images -r mbed-os-env-tmp || true

.github/workflows/docker_management.release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
steps:
2525
-
2626
name: Checkout
27-
uses: actions/checkout@v2
27+
uses: actions/checkout@v3
2828
with:
2929
fetch-depth: 0
3030

@@ -134,7 +134,7 @@ jobs:
134134

135135
-
136136
name: Checkout
137-
uses: actions/checkout@v2
137+
uses: actions/checkout@v3
138138
with:
139139
ref: refs/tags/${{ steps.build_info.outputs.MBED_OS_VERSION }}
140140

@@ -198,7 +198,7 @@ jobs:
198198
# development branch of blinky
199199
-
200200
name: Checkout example blinky
201-
uses: actions/checkout@v2
201+
uses: actions/checkout@v3
202202
with:
203203
repository: ARMmbed/mbed-os-example-blinky
204204
path: mbed-os-example-blinky
@@ -224,7 +224,7 @@ jobs:
224224
225225
-
226226
name: Checkout
227-
uses: actions/checkout@v2
227+
uses: actions/checkout@v3
228228
with:
229229
ref: refs/tags/${{ steps.build_info.outputs.MBED_OS_VERSION }}
230230
path: mbed-os-example-blinky/mbed-os

.github/workflows/docker_management.test-PR.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
# for PR tests, development branch of blinky is used
3535
-
3636
name: Checkout
37-
uses: actions/checkout@v2
37+
uses: actions/checkout@v3
3838
with:
3939
repository: ARMmbed/mbed-os-example-blinky
4040
path: mbed-os-example-blinky
@@ -49,7 +49,7 @@ jobs:
4949
5050
-
5151
name: Checkout
52-
uses: actions/checkout@v2
52+
uses: actions/checkout@v3
5353
with:
5454
path: mbed-os-example-blinky/mbed-os
5555

.github/workflows/greentea_cmake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
container: ghcr.io/armmbed/mbed-os-env:master-latest
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v2
11+
uses: actions/checkout@v3
1212

1313
- name: Install the latest mbed-tools
1414
run: |

.github/workflows/main.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,21 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10+
- name: Work around https://github.com/actions/checkout/issues/766
11+
run: |
12+
cd "${GITHUB_WORKSPACE}" || exit 1
13+
git config --global --add safe.directory "$GITHUB_WORKSPACE"
14+
1015
- name: Checkout repo
11-
uses: actions/checkout@v2
16+
uses: actions/checkout@v3
1217

1318
- name: Install Python environment
1419
uses: actions/setup-python@v2
1520
with:
1621
python-version: 3.8
1722

1823
- name: Checkout mbed-os-scripts repo (This repo is currently private)
19-
uses: actions/checkout@v2
24+
uses: actions/checkout@v3
2025
with:
2126
repository: ARMmbed/mbed-os-ci-scripts
2227
token: ${{ secrets.ISSUE_TRIAGING_PERMS }}

.github/workflows/run_conditional_ble_feature_compilation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
container: mbedos/mbed-os-env:latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v3
1515
with:
1616
path: mbed-os
1717

.github/workflows/test_building_multiple_executables.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
container: ghcr.io/armmbed/mbed-os-env:master-latest
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v2
11+
uses: actions/checkout@v3
1212

1313
- name: Build the multiple_executables example
1414
run: |

0 commit comments

Comments
 (0)