Skip to content

Commit

Permalink
Update action versions in common workflows
Browse files Browse the repository at this point in the history
GitHub has recently been presenting the following warning:

> Node.js 16 actions are deprecated. Please update the following actions to
> use Node.js 20: actions/checkout@v3, actions/setup-python@v4,
> actions/cache@v3. For more information see:
> https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

This commit updates the action version in several of our workflows to
more recent versions.
  • Loading branch information
larsks committed Feb 9, 2024
1 parent f7b39ce commit 9f24445
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/precommit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.9"
python-version: "3.12"

- name: Configure caching
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: precommit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.11"

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/validate-manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Check out CI scripts
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: ${{ inputs.common_ci_repository }}
ref: ${{ inputs.common_ci_ref }}
path: "${{ env.COMMON_CI }}"

- name: Checkout additional schema definitions
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: ${{ inputs.schema_repository }}
ref: ${{ inputs.schema_ref }}
Expand Down

0 comments on commit 9f24445

Please sign in to comment.