File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments