From 7120a2491f2c0dc5394728b46ec877cc4e2d9d44 Mon Sep 17 00:00:00 2001 From: Wade Barnes Date: Wed, 7 Feb 2024 06:52:56 -0800 Subject: [PATCH] Upgrade GHA versions - Address warning raised while running workflows. Signed-off-by: Wade Barnes --- .github/actions/getNewNodeVersion/action.yaml | 8 ++++---- .github/workflows/PR.yaml | 4 ++-- .github/workflows/Push.yaml | 2 +- .github/workflows/publishRelease.yaml | 20 +++++++++---------- .github/workflows/releasepr.yaml | 2 +- ...poDispatchable_UpdatePlenumDependency.yaml | 2 +- .github/workflows/reuseable_test.yaml | 10 +++++----- .github/workflows/tag.yaml | 8 ++++---- 8 files changed, 28 insertions(+), 28 deletions(-) diff --git a/.github/actions/getNewNodeVersion/action.yaml b/.github/actions/getNewNodeVersion/action.yaml index bd9f08fe3..44d6d4f4b 100644 --- a/.github/actions/getNewNodeVersion/action.yaml +++ b/.github/actions/getNewNodeVersion/action.yaml @@ -8,16 +8,16 @@ inputs: default: "true" outputs: - nodeVersion: + nodeVersion: description: "The new Version. (Bumped Patch by 1)" value: ${{ steps.versions.outputs.nodeVersion }} runs: using: "composite" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: '3.8' - name: Get Versions @@ -28,7 +28,7 @@ runs: minor=$(python3 -c "from indy_node import load_version; patch = load_version().parts[1]; print('' if patch is None else patch)") patch=$(python3 -c "from indy_node import load_version; patch = load_version().parts[2]; patch+=1; print('' if patch is None else patch)") if [[ "${{ inputs.isRC }}" == "true" ]]; then - export nodeVersion="${major}.${minor}.${patch}rc1" + export nodeVersion="${major}.${minor}.${patch}rc1" else export nodeVersion="${major}.${minor}.${patch}" fi diff --git a/.github/workflows/PR.yaml b/.github/workflows/PR.yaml index 3368a68fd..e3a2f617c 100644 --- a/.github/workflows/PR.yaml +++ b/.github/workflows/PR.yaml @@ -27,13 +27,13 @@ jobs: testsNeeded: ${{ steps.testsNeeded.outputs.testsNeeded }} steps: - name: checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: setup id: setup uses: hyperledger/indy-shared-gha/.github/actions/workflow-setup@v1 - name: testsNeeded id: testsNeeded - uses: dorny/paths-filter@v2 + uses: dorny/paths-filter@v3 with: filters: | testsNeeded: diff --git a/.github/workflows/Push.yaml b/.github/workflows/Push.yaml index 615ec9038..ba6d6c00d 100644 --- a/.github/workflows/Push.yaml +++ b/.github/workflows/Push.yaml @@ -26,7 +26,7 @@ jobs: publish: ${{ steps.setup.outputs.publish }} steps: - name: checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: setup id: setup uses: hyperledger/indy-shared-gha/.github/actions/workflow-setup@v1 diff --git a/.github/workflows/publishRelease.yaml b/.github/workflows/publishRelease.yaml index f86de44c8..676cad1ee 100644 --- a/.github/workflows/publishRelease.yaml +++ b/.github/workflows/publishRelease.yaml @@ -30,7 +30,7 @@ jobs: publish: ${{ steps.workflow-setup.outputs.publish }} steps: - name: checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: get-release-info id: get-release-info uses: hyperledger/indy-shared-gha/.github/actions/get-release-info@v1 @@ -39,7 +39,7 @@ jobs: - name: workflow-setup id: workflow-setup uses: hyperledger/indy-shared-gha/.github/actions/workflow-setup@v1 - + createRelease: name: Create Release needs: [release-infos] @@ -47,8 +47,8 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 - + uses: actions/checkout@v4 + - name: Download Node deb Artifacts from Github Action Artifacts uses: dawidd6/action-download-artifact@v2 with: @@ -73,17 +73,17 @@ jobs: workflow_conclusion: success name: third-party-dependencies path: artifacts/third-party-dependencies - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: third-party-dependencies path: artifacts/third-party-dependencies retention-days: 5 - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: indy_node-deb path: artifacts/indy_node-deb retention-days: 5 - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: indy_node-python path: artifacts/indy_node-python @@ -115,7 +115,7 @@ jobs: COMPONENT: ${{ needs.release-infos.outputs.component }} UBUNTU_VERSION: ${{ needs.release-infos.outputs.UBUNTU_VERSION }} distribution: ${{ needs.release-infos.outputs.distribution }} - moduleName: indy_node + moduleName: indy_node secrets: INDY_ARTIFACTORY_REPO_CONFIG: ${{ secrets.INDY_ARTIFACTORY_REPO_CONFIG }} PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} @@ -132,7 +132,7 @@ jobs: needs: [release-infos, publish_artifacts, convertPyVersion] steps: - name: Repository Dispatch - uses: peter-evans/repository-dispatch@v2 + uses: peter-evans/repository-dispatch@v3 with: token: ${{ secrets.BOT_PR_PAT }} repository: sovrin-foundation/sovrin @@ -144,7 +144,7 @@ jobs: needs: [release-infos, publish_artifacts, convertPyVersion] steps: - name: Repository Dispatch - uses: peter-evans/repository-dispatch@v2 + uses: peter-evans/repository-dispatch@v3 with: token: ${{ secrets.BOT_PR_PAT }} repository: sovrin-foundation/token-plugin diff --git a/.github/workflows/releasepr.yaml b/.github/workflows/releasepr.yaml index 1e3db0bb7..80fc1ece5 100644 --- a/.github/workflows/releasepr.yaml +++ b/.github/workflows/releasepr.yaml @@ -23,7 +23,7 @@ jobs: distribution: ${{ steps.workflow-setup.outputs.distribution }} steps: - name: checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: get-release-info id: get-release-info uses: hyperledger/indy-shared-gha/.github/actions/get-release-info@v1 diff --git a/.github/workflows/repoDispatchable_UpdatePlenumDependency.yaml b/.github/workflows/repoDispatchable_UpdatePlenumDependency.yaml index d9ce6257e..d0f870936 100644 --- a/.github/workflows/repoDispatchable_UpdatePlenumDependency.yaml +++ b/.github/workflows/repoDispatchable_UpdatePlenumDependency.yaml @@ -8,7 +8,7 @@ jobs: update-setup: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Update indy-plenum to ${{ github.event.client_payload.pyVersion }} run: | sed -i "s/\(indy-plenum==\)[^ ]*/\1${{ github.event.client_payload.pyVersion }},/g" setup.py diff --git a/.github/workflows/reuseable_test.yaml b/.github/workflows/reuseable_test.yaml index 0c6e3879c..59fd34fd3 100644 --- a/.github/workflows/reuseable_test.yaml +++ b/.github/workflows/reuseable_test.yaml @@ -29,7 +29,7 @@ jobs: fail-fast: false steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 # =============================================== # Caching cannot be used. @@ -38,7 +38,7 @@ jobs: # for the plenum install. # ----------------------------------------------- # - name: Cache pip - # uses: actions/cache@v3 + # uses: actions/cache@v4 # with: # # pip cache on the node-build image is not in the default location. # # path: ~/.cache/pip @@ -47,7 +47,7 @@ jobs: # restore-keys: | # ${{ runner.os }}-indy-node-pip- - name: Download node deb - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: indy_node-deb @@ -80,7 +80,7 @@ jobs: - name: Publish Test Report if: success() || failure() - uses: scacap/action-surefire-report@v1.0.7 + uses: scacap/action-surefire-report@v1 continue-on-error: true with: check_name: Indy Node ${{ matrix.module }} Test Report for slice ${{ matrix.slice }}/${{ strategy.job-total }} @@ -90,7 +90,7 @@ jobs: - name: Upload Detailed Test Failure Results # The test runner only emits the detailed test results if the tests fail. if: (steps.node-test.outcome == 'failure') && failure() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: detailed-test-result-slice-${{ matrix.slice }} path: test-result-node-${{ matrix.slice }}.txt diff --git a/.github/workflows/tag.yaml b/.github/workflows/tag.yaml index b77d6eba0..4bcff308b 100644 --- a/.github/workflows/tag.yaml +++ b/.github/workflows/tag.yaml @@ -16,10 +16,10 @@ jobs: BASE: ${{ steps.get-branch.outputs.branch }} steps: - name: checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - - name: extract branch + - name: extract branch id: get-branch uses: hyperledger/indy-shared-gha/.github/actions/branch-from-tag@v1 with: @@ -36,9 +36,9 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: '3.8' - name: Install deps for version change