Skip to content

Commit 821d434

Browse files
committed
(PA-5794) Update Checkout GitHub Action
Prior to this commit, the GitHub Actions were using the long end-of-life Checkout action. This commit updates Checkout to the latest version possible. The version used in install_puppet.yaml is limited to v3 (which is end-of-life) because it uses a version of NodeJS that relies on a compiler version newer than CentOS 7 or Ubuntu 18.04 can support. Once we drop support for those platforms, we should be able to use Checkout v4 everywhere.
1 parent dcabe1d commit 821d434

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout current PR
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
1818
- name: Run shellcheck

.github/workflows/install_puppet.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
pull_request:
77
branches: [ main ]
88

9+
# Even thought checkout@v3 is end-of-life, we cannot upgrade to v4
10+
# because it cannot run on CentOS 7 and Ubuntu 18.04
911
jobs:
1012
install-puppet:
1113
name: ${{ matrix.collection }} / ${{ matrix.os.name }}
@@ -26,7 +28,7 @@ jobs:
2628
image: ${{ matrix.os.image }}
2729
steps:
2830
- name: Checkout current PR
29-
uses: actions/checkout@v2
31+
uses: actions/checkout@v3
3032
with:
3133
fetch-depth: 0
3234
- name: Install puppet-agent from ${{ matrix.collection }} collection

0 commit comments

Comments
 (0)