Pin checkout at v3 in all workflows

This fixes some CI warnings about using obsolete versions of NodeJS.
NodeJS 12 (from checkout@2) is at EOL, and CI warnings recommend using
NodeJS 16. The docs for actions/checkout recommend pinning at v3.

Some of these workflows were using `checkout@master`, and were thereby
already using NodeJS 16. I'm not sure that it's necessary to use v3
for these instead of master. However, the docs suggest using v3.
If at some point the authors decide to rename the `master` branch to
`main`, then we may be glad we made this change.
This commit is contained in:
Dave Dalcino
2023-02-11 11:31:23 -08:00
parent 7f43087125
commit a998d4368b
7 changed files with 7 additions and 7 deletions

View File

@@ -14,7 +14,7 @@ jobs:
check_combinations:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v3
with:
fetch-depth: 20

View File

@@ -16,7 +16,7 @@ jobs:
name: Check packaging 📦
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v3
with:
fetch-depth: 20
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*

View File

@@ -28,7 +28,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2

View File

@@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 50
- name: Fetch release tag

View File

@@ -7,7 +7,7 @@ jobs:
create-release-notes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v3
- name: Create Release Notes
uses: docker://decathlon/release-notes-generator-action:2.0.0
env:

View File

@@ -25,7 +25,7 @@ jobs:
py: "3.10"
qtver: 6.1.0
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
with:
fetch-depth: 20
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*

View File

@@ -19,7 +19,7 @@ jobs:
py: [3.9]
arch: [x86, x64]
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
with:
fetch-depth: 20
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*