File tree 1 file changed +16
-5
lines changed
1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -44,14 +44,25 @@ jobs:
44
44
image : ${{ matrix.swift.image }}
45
45
steps :
46
46
- 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
+
51
59
- 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
53
62
run : git config --global --add safe.directory ${GITHUB_WORKSPACE}
63
+
54
64
- name : Run matrix job
65
+ working-directory : ${{ github.event.repository.name }} # until we can use action/checkout@v4
55
66
env :
56
67
SWIFT_VERSION : ${{ matrix.swift.swift_version }}
57
68
COMMAND : ${{ inputs.matrix_linux_command }}
You can’t perform that action at this time.
0 commit comments