Skip to content

Commit 34ec3ed

Browse files
committed
1 parent b747e5d commit 34ec3ed

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/examples_matrix.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,25 @@ jobs:
4444
image: ${{ matrix.swift.image }}
4545
steps:
4646
- name: Checkout repository
47-
# use v3 until this is fixed https://github.com/actions/checkout/issues/1487
48-
uses: actions/checkout@v3
49-
with:
50-
persist-credentials: false
47+
# GitHub checkout action has a dep on NodeJS 20 which is not running on Amazonlinux2
48+
# workaround is to manually checkout the repository
49+
# https://github.com/actions/checkout/issues/1487
50+
51+
# uses: actions/checkout@v4
52+
# with:
53+
# persist-credentials: false
54+
run: |
55+
git clone https://github.com/${{ github.repository }}
56+
cd ${{ github.event.repository.name }}
57+
git checkout ${{ github.sha }}
58+
5159
- name: Mark the workspace as safe
52-
# https://github.com/actions/checkout/issues/766
60+
working-directory: ${{ github.event.repository.name }} # until we can use action/checkout@v4
61+
# https://github.com/actions/checkout/issues/766
5362
run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
63+
5464
- name: Run matrix job
65+
working-directory: ${{ github.event.repository.name }} # until we can use action/checkout@v4
5566
env:
5667
SWIFT_VERSION: ${{ matrix.swift.swift_version }}
5768
COMMAND: ${{ inputs.matrix_linux_command }}

0 commit comments

Comments
 (0)