Update GitHub actions to avoid deprecated Node version

Following Node12's deprecation by GitHub, we started getting the
following message:
```
create_new_rule
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
```

From the doc of these actions, it looks like just upgrading the versions
should work transparently.
This commit is contained in:
Fred Tingaud 2023-09-26 11:11:10 +02:00 committed by GitHub
parent 8238b22e12
commit 51e34f4a2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View File

@ -19,13 +19,13 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
persist-credentials: true
ref: master
path: 'rspec'
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: '3.9'

View File

@ -16,13 +16,13 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
persist-credentials: true
ref: master
path: 'rspec'
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: '3.9'

View File

@ -13,7 +13,7 @@ jobs:
contents: write # Get the contents of open new-rule PRs, the 'master'; write to 'gh-pages' branch
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
uses: actions/checkout@v4 # If you're using actions/checkout you must set persist-credentials to false in most cases for the deployment to work correctly.
with:
persist-credentials: false
ref: 'master'

View File

@ -10,14 +10,14 @@ jobs:
TMP_BRANCH: temporary/coverage_update
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
persist-credentials: true
ref: master
path: 'rspec'
token: ${{ secrets.COVERAGE_GITHUB_TOKEN }}
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: '3.9'