From a4fc7f6ece9c70dc38f88ea7e123063c81d79b75 Mon Sep 17 00:00:00 2001 From: Wade Barnes Date: Wed, 7 Feb 2024 06:46:46 -0800 Subject: [PATCH] Upgrade GHA versions - Address warning raised while running workflows. Signed-off-by: Wade Barnes --- .github/workflows/PR.yaml | 4 ++-- .github/workflows/Push.yaml | 2 +- .github/workflows/publishRelease.yaml | 28 +++++++++++++-------------- .github/workflows/releasepr.yaml | 2 +- .github/workflows/reuseable_test.yaml | 15 +++++++------- .github/workflows/tag.yaml | 11 +++++------ 6 files changed, 30 insertions(+), 32 deletions(-) diff --git a/.github/workflows/PR.yaml b/.github/workflows/PR.yaml index f442f89bfe..1c1d7a41a4 100644 --- a/.github/workflows/PR.yaml +++ b/.github/workflows/PR.yaml @@ -25,13 +25,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 65576ef499..a6fa151ef2 100644 --- a/.github/workflows/Push.yaml +++ b/.github/workflows/Push.yaml @@ -25,7 +25,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 10b575a8e1..53a85003b6 100644 --- a/.github/workflows/publishRelease.yaml +++ b/.github/workflows/publishRelease.yaml @@ -31,7 +31,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 @@ -40,7 +40,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] @@ -48,10 +48,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 - + uses: actions/checkout@v4 + - name: Download Plenum deb Artifacts from Github Action Artifacts - uses: dawidd6/action-download-artifact@v2 + uses: dawidd6/action-download-artifact@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} workflow: releasepr.yaml @@ -59,7 +59,7 @@ jobs: name: plenum-deb path: artifacts/plenum-deb - name: Download Plenum python Artifacts from Github Action Artifacts - uses: dawidd6/action-download-artifact@v2 + uses: dawidd6/action-download-artifact@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} workflow: releasepr.yaml @@ -67,24 +67,24 @@ jobs: name: plenum-python path: artifacts/plenum-python - name: Download Plenum third party dependency Artifacts from Github Action Artifacts - uses: dawidd6/action-download-artifact@v2 + uses: dawidd6/action-download-artifact@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} workflow: releasepr.yaml 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: plenum-deb path: artifacts/plenum-deb retention-days: 5 - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: plenum-python path: artifacts/plenum-python @@ -116,24 +116,24 @@ jobs: COMPONENT: ${{ needs.release-infos.outputs.component }} UBUNTU_VERSION: ${{ needs.release-infos.outputs.UBUNTU_VERSION }} distribution: ${{ needs.release-infos.outputs.distribution }} - moduleName: plenum + moduleName: plenum secrets: INDY_ARTIFACTORY_REPO_CONFIG: ${{ secrets.INDY_ARTIFACTORY_REPO_CONFIG }} PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} - + convertPyVersion: name: "Convert to python version flavour" needs: [release-infos, publish_artifacts] uses: hyperledger/indy-shared-gha/.github/workflows/pyVersionConversion.yaml@v1 with: VERSIONTAG: ${{ needs.release-infos.outputs.VERSIONTAG }} - + triggerNodeUpdate: runs-on: ubuntu-latest 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: hyperledger/indy-node diff --git a/.github/workflows/releasepr.yaml b/.github/workflows/releasepr.yaml index c4f04e8521..a44e909921 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/reuseable_test.yaml b/.github/workflows/reuseable_test.yaml index e1b24e03d2..485de6a82f 100644 --- a/.github/workflows/reuseable_test.yaml +++ b/.github/workflows/reuseable_test.yaml @@ -32,10 +32,10 @@ jobs: fail-fast: false steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Cache pip - uses: actions/cache@v3 + uses: actions/cache@v4 with: # pip cache on the plenum-build image is not in the default location. # path: ~/.cache/pip @@ -45,7 +45,7 @@ jobs: ${{ runner.os }}-pip- - name: Download plenum deb build - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: plenum-deb @@ -60,7 +60,6 @@ jobs: run: | # Explicitly use the existing pip cache location in the plenum-build image. pip --cache-dir /root/.cache/pip install .[tests] - - name: Run Indy Plenum ${{ matrix.module }} test slice ${{ matrix.slice }}/${{ strategy.job-total }} id: plenum-test @@ -78,7 +77,7 @@ jobs: - name: Upload Detailed Test Failure Results # The test runner only emits the detailed test results if the tests fail. if: (steps.plenum-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-plenum-${{ matrix.slice }}.txt @@ -98,10 +97,10 @@ jobs: fail-fast: false steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Cache pip - uses: actions/cache@v3 + uses: actions/cache@v4 with: # pip cache on the plenum-build image is not in the default location. # path: ~/.cache/pip @@ -111,7 +110,7 @@ jobs: ${{ runner.os }}-pip- - name: Download plenum deb build - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: plenum-deb diff --git a/.github/workflows/tag.yaml b/.github/workflows/tag.yaml index 9b53555924..ba83de9cb5 100644 --- a/.github/workflows/tag.yaml +++ b/.github/workflows/tag.yaml @@ -2,7 +2,7 @@ name: Triggered by set Tag on: push: - tags: + tags: - setRelease-v** jobs: @@ -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@v2 + uses: actions/setup-python@v5 with: python-version: '3.8' - name: Install deps for version change @@ -65,4 +65,3 @@ jobs: body: "[${{ needs.taginfos.outputs.versionTag }}] - Update Version number for Release" delete-branch: true token: ${{ secrets.BOT_PR_PAT }} - \ No newline at end of file