Skip to content

Commit

Permalink
ci: bump actions to silence node12 warnings (#481)
Browse files Browse the repository at this point in the history
As of [June 2023][1], GitHub no longer uses node v12 within its actions
runner by default.  They have been encouraging action authors to switch
to node v16 and [encouraging users][2] to use the new versions of the
actions when they become available, with the intent on removing node v12
sometime in the near future.

Bump the versions of the affected actions to bring this in line.

[1]: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
[2]: https://github.com/codeready-toolchain/host-operator/actions/runs/6421632076

Signed-off-by: Andy Sadler <ansadler@redhat.com>
Co-authored-by: Alexey Kazakov <alkazako@redhat.com>
  • Loading branch information
sadlerap and alexeykazakov authored Oct 11, 2023
1 parent 8b99ad2 commit a026dbe
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.19.x

- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Generate Assets
run: |
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
go-version: 1.19.x

- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Generate Assets
run: |
Expand All @@ -68,10 +68,10 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Generate SBOM
uses: CycloneDX/gh-gomod-generate-sbom@v1
uses: CycloneDX/gh-gomod-generate-sbom@v2
with:
version: v1
args: mod -licenses -json -output -
args: mod -licenses -json -output -
2 changes: 1 addition & 1 deletion .github/workflows/ci-check-gomod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: check
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/operator-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles ('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: '3.x'

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/publish-operators-for-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
# Checkout from PR event - in that case the comment field is empty
- name: Checkout code from PR event
uses: actions/checkout@v2
uses: actions/checkout@v4
if: ${{ github.event.comment == '' }}
with:
ref: ${{github.event.pull_request.head.ref}}
Expand All @@ -39,27 +39,27 @@ jobs:
# Checkout the code based on the data retrieved from the previous step
# Is executed only for comment events - in that case the pull_request field is empty
- name: Checkout code from PR
uses: actions/checkout@v2
uses: actions/checkout@v4
if: ${{ github.event.pull_request == '' }}
with:
repository: ${{ fromJson(steps.request.outputs.data).head.repo.full_name }}
ref: ${{ fromJson(steps.request.outputs.data).head.ref }}
fetch-depth: 0

- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles ('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: '3.x'

Expand Down

0 comments on commit a026dbe

Please sign in to comment.