From b896e4d7117c29ee2b762e58b416c83fc10f1336 Mon Sep 17 00:00:00 2001 From: Atif Ali <56743004+aali309@users.noreply.github.com> Date: Tue, 3 Oct 2023 17:19:15 -0400 Subject: [PATCH] feat(ci): update github actions to node 16 (#639) * update node 12 to 16 * update actions/cache to v3 * returned actions/github-script@v4 * resolved issues * resolved more issues --- .github/workflows/build-ci.yml | 6 +++--- .github/workflows/test-ci-command.yml | 8 ++++---- .github/workflows/test-ci-reusable.yml | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-ci.yml b/.github/workflows/build-ci.yml index e9279d3d4..41b2959ef 100644 --- a/.github/workflows/build-ci.yml +++ b/.github/workflows/build-ci.yml @@ -26,7 +26,7 @@ jobs: build-operator: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install podman v4 run: | echo "deb $OPENSUSE_UNOFFICIAL_LIBCONTAINERS_SOURCE_URL/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list @@ -63,7 +63,7 @@ jobs: build-bundle: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Build bundle image run: IMAGE_NAMESPACE=${{ env.CI_REGISTRY }} make bundle-build - name: Tag image @@ -93,7 +93,7 @@ jobs: build-scorecard: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Get scorecard image tag id: get-image-tag run: | diff --git a/.github/workflows/test-ci-command.yml b/.github/workflows/test-ci-command.yml index 888f84012..0c10671d3 100644 --- a/.github/workflows/test-ci-command.yml +++ b/.github/workflows/test-ci-command.yml @@ -34,11 +34,11 @@ jobs: && (!contains(github.event.issue.labels.*.name, 'safe-to-test') || github.event.issue.user.name != github.event.comment.user.name) run: exit 1 - name: React to comment - uses: actions/github-script@v4 + uses: actions/github-script@v6 with: script: | const {owner, repo} = context.issue - github.reactions.createForIssueComment({ + github.rest.reactions.createForIssueComment({ owner, repo, comment_id: context.payload.comment.id, @@ -55,11 +55,11 @@ jobs: PR_num: ${{ fromJSON(steps.comment-branch.outputs.result).num }} PR_repo: ${{ fromJSON(steps.comment-branch.outputs.result).repo }} steps: - - uses: actions/github-script@v4 + - uses: actions/github-script@v6 id: comment-branch with: script: | - const result = await github.pulls.get ({ + const result = await github.rest.pulls.get ({ owner: context.repo.owner, repo: context.repo.repo, pull_number: context.issue.number diff --git a/.github/workflows/test-ci-reusable.yml b/.github/workflows/test-ci-reusable.yml index 38a361c3a..b4acc1c4f 100644 --- a/.github/workflows/test-ci-reusable.yml +++ b/.github/workflows/test-ci-reusable.yml @@ -35,14 +35,14 @@ jobs: controller-test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: repository: ${{ inputs.repository }} ref: ${{ inputs.ref }} - - uses: actions/setup-go@v2 + - uses: actions/setup-go@v4 with: go-version: '1.20.*' - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/go/pkg/mod @@ -56,7 +56,7 @@ jobs: scorecard-test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: repository: ${{ inputs.repository }} ref: ${{ inputs.ref }}