Commit fe1b1dd
committed
Replace actions/checkout Functionality
Why these changes are being introduced:
The hosts running the GitHub actions are running Amazon Linux 2 which
is no longer on the supported host OS list for self-hosted GitHub
runners. Since the actions-runner on the hosts is configured to
auto-update, it not longer has node16 embedded and node20 cannot run on
AL2 (because the host OS does not have an up-to-date-enough version of
the glibc library).
The only thing in the workflow that requires node20 is the
actions/checkout command. So, instead of using actions/checkout, we just
run the very short list of git commands that we need to checkout the
correct commit to run the simple deploy command.
We update the manual workflow, the staging workflow (for pushes to the
main branch) and the production workflow (for tagged releases on the
main branch).
How this addresses that need:
* Remove the actions/checkout@v3 step in all three workflows
* Create new steps for the necessary git commands to clone the repo and
checkout the correct commit
Side effects of this change:
None.
Relevant ticket(s):
* https://mitlibraries.atlassian.net/browse/IN-13271 parent 7d0adc2 commit fe1b1dd
3 files changed
Lines changed: 28 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 9 | | |
14 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
15 | 22 | | |
16 | 23 | | |
17 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | 17 | | |
20 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
21 | 27 | | |
22 | 28 | | |
23 | 29 | | |
| |||
0 commit comments