Checking out code using github action in legacy runner

Problem

Performing a simple git checkout using official checkout action fails in a legacy self hosted runner running amazon linux 2 because newer versions of nodejs(>= 20) requires a newer version of GLIBC which is not available in these …


This content originally appeared on DEV Community and was authored by Kishan B

Problem

Performing a simple git checkout using official checkout action fails in a legacy self hosted runner running amazon linux 2 because newer versions of nodejs(>= 20) requires a newer version of GLIBC which is not available in these operating systems.

Solution

Use bash to perform the checkout in the action code i.e

replace the line

- uses: actions/checkout@v3

with

- name: Checkout
  run: |
    git clone "https://github.com/${GITHUB_REPOSITORY}.git" "${GITHUB_WORKSPACE}"


This content originally appeared on DEV Community and was authored by Kishan B


Print Share Comment Cite Upload Translate Updates
APA

Kishan B | Sciencx (2024-08-18T07:53:35+00:00) Checking out code using github action in legacy runner. Retrieved from https://www.scien.cx/2024/08/18/checking-out-code-using-github-action-in-legacy-runner/

MLA
" » Checking out code using github action in legacy runner." Kishan B | Sciencx - Sunday August 18, 2024, https://www.scien.cx/2024/08/18/checking-out-code-using-github-action-in-legacy-runner/
HARVARD
Kishan B | Sciencx Sunday August 18, 2024 » Checking out code using github action in legacy runner., viewed ,<https://www.scien.cx/2024/08/18/checking-out-code-using-github-action-in-legacy-runner/>
VANCOUVER
Kishan B | Sciencx - » Checking out code using github action in legacy runner. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/18/checking-out-code-using-github-action-in-legacy-runner/
CHICAGO
" » Checking out code using github action in legacy runner." Kishan B | Sciencx - Accessed . https://www.scien.cx/2024/08/18/checking-out-code-using-github-action-in-legacy-runner/
IEEE
" » Checking out code using github action in legacy runner." Kishan B | Sciencx [Online]. Available: https://www.scien.cx/2024/08/18/checking-out-code-using-github-action-in-legacy-runner/. [Accessed: ]
rf:citation
» Checking out code using github action in legacy runner | Kishan B | Sciencx | https://www.scien.cx/2024/08/18/checking-out-code-using-github-action-in-legacy-runner/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.