From e261e82c0a2d2c082bb6aaf79df6bff15707f8d2 Mon Sep 17 00:00:00 2001 From: "Andrew W. Harn" Date: Mon, 5 Feb 2024 15:48:42 +0000 Subject: [PATCH] Update workflows to Node 20 workflows Signed-off-by: Andrew W. Harn --- .github/workflows/auto-comment.yml | 8 ++--- .../manifest_updateVersions.createPR.yml | 2 +- .github/workflows/stale.yml | 2 +- .github/workflows/zowe-cli-bundle.yaml | 18 +++++------ .github/workflows/zowe-cli-coverage.yaml | 6 ++-- .github/workflows/zowe-cli-deploy-all.yaml | 30 +++++++++---------- .../workflows/zowe-cli-deploy-component.yaml | 6 ++-- .../zowe-versions_updateVersions_createPR.yml | 4 +-- 8 files changed, 38 insertions(+), 38 deletions(-) diff --git a/.github/workflows/auto-comment.yml b/.github/workflows/auto-comment.yml index 526dd14..31e2b3e 100644 --- a/.github/workflows/auto-comment.yml +++ b/.github/workflows/auto-comment.yml @@ -9,10 +9,10 @@ jobs: name: Process Label Action runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Process Label Action - uses: hramos/respond-to-issue-based-on-label@v2 + uses: dessant/label-actions@v4 with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - configuration-path: '.github/label-actions.yml' + github-token: ${{ secrets.GITHUB_TOKEN }} + config-path: '.github/label-actions.yml' diff --git a/.github/workflows/manifest_updateVersions.createPR.yml b/.github/workflows/manifest_updateVersions.createPR.yml index 6ba53c4..fade2e8 100644 --- a/.github/workflows/manifest_updateVersions.createPR.yml +++ b/.github/workflows/manifest_updateVersions.createPR.yml @@ -36,7 +36,7 @@ jobs: token: ${{ secrets.ZOWE_ROBOT_TOKEN }} - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: lts/* diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 4d7ac81..17f632a 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -11,7 +11,7 @@ jobs: stale: runs-on: ubuntu-latest steps: - - uses: actions/stale@v8 + - uses: actions/stale@v9 with: # General rules applied to both, issues and pull requests (PRs) start-date: "2022-07-30T00:00:00Z" diff --git a/.github/workflows/zowe-cli-bundle.yaml b/.github/workflows/zowe-cli-bundle.yaml index 4cbfeec..dc9db23 100644 --- a/.github/workflows/zowe-cli-bundle.yaml +++ b/.github/workflows/zowe-cli-bundle.yaml @@ -49,17 +49,17 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use Node.js LTS - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 'lts/*' cache: 'npm' # Python 3.12 breaks node-gyp < 10, breaking current versions of Node 18/20 (as of Nov 9, 2023) - awharn - name: Downgrade Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.11.5' @@ -73,7 +73,7 @@ jobs: GIT_BRANCH: ${{ github.head_ref || github.ref_name }} - name: Setup JFrog CLI - uses: jfrog/setup-jfrog-cli@v3 + uses: jfrog/setup-jfrog-cli@v4 env: JF_ENV_1: ${{ secrets.JF_ARTIFACTORY_TOKEN }} @@ -154,7 +154,7 @@ jobs: run: TZ=UTC find . -maxdepth 1 -name "*.zip" -type f -exec touch -t 197001010000.00 {} + - name: Archive Build Artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: 'zowe-cli-bundle_${{ inputs.package-tag }}' path: '*.zip' @@ -201,23 +201,23 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Download Bundle Artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: 'zowe-cli-bundle_${{ inputs.package-tag }}' path: 'zowe-cli-bundle' - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} check-latest: true # Python 3.12 breaks node-gyp < 10, breaking current versions of Node 18/20 (as of Nov 9, 2023) - awharn - name: Downgrade Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.11.5' diff --git a/.github/workflows/zowe-cli-coverage.yaml b/.github/workflows/zowe-cli-coverage.yaml index 4284179..52211a9 100644 --- a/.github/workflows/zowe-cli-coverage.yaml +++ b/.github/workflows/zowe-cli-coverage.yaml @@ -10,9 +10,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 'lts/*' cache: 'npm' @@ -25,7 +25,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: 'coverage-report' path: 'coverage-report.csv' diff --git a/.github/workflows/zowe-cli-deploy-all.yaml b/.github/workflows/zowe-cli-deploy-all.yaml index a424394..f093383 100644 --- a/.github/workflows/zowe-cli-deploy-all.yaml +++ b/.github/workflows/zowe-cli-deploy-all.yaml @@ -24,10 +24,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use Node.js LTS - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 'lts/*' cache: ${{ (!env.ACT && 'npm') || '' }} @@ -50,10 +50,10 @@ jobs: RUN_OS: windows-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use Node.JS LTS - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 - name: Install Dependencies run: npm ci @@ -89,10 +89,10 @@ jobs: RUN_OS: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use Node.JS LTS - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 - name: Install Dependencies run: npm ci @@ -128,16 +128,16 @@ jobs: RUN_OS: macos-12 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use Node.JS LTS - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 - name: Install Dependencies run: npm ci - name: Downgrade Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.11.5' @@ -172,10 +172,10 @@ jobs: RUN_OS: macos-14 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use Node.JS LTS - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 - name: Install Dependencies run: npm ci @@ -206,10 +206,10 @@ jobs: if: ${{ (github.event.schedule || inputs.skip-smoke-tests != true) && (always()) }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use Node.JS LTS - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 - name: Install Dependencies run: npm ci @@ -257,10 +257,10 @@ jobs: echo "PKG_TAGS=${PKG_TAGS}" >> $GITHUB_ENV - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use Node.js LTS - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 'lts/*' cache: ${{ (!env.ACT && 'npm') || '' }} diff --git a/.github/workflows/zowe-cli-deploy-component.yaml b/.github/workflows/zowe-cli-deploy-component.yaml index f0d9a96..5096097 100644 --- a/.github/workflows/zowe-cli-deploy-component.yaml +++ b/.github/workflows/zowe-cli-deploy-component.yaml @@ -38,19 +38,19 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: 'zowe/zowe-cli-standalone-package' - name: Use Node.js LTS - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 'lts/*' cache: ${{ (!env.ACT && 'npm') || '' }} # Python 3.12 breaks node-gyp < 10, breaking current versions of Node 18/20 (as of Nov 9, 2023) - awharn - name: Downgrade Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.11.5' diff --git a/.github/workflows/zowe-versions_updateVersions_createPR.yml b/.github/workflows/zowe-versions_updateVersions_createPR.yml index 13e5fcc..371be67 100644 --- a/.github/workflows/zowe-versions_updateVersions_createPR.yml +++ b/.github/workflows/zowe-versions_updateVersions_createPR.yml @@ -21,10 +21,10 @@ jobs: steps: - name: Checkout Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: lts/*