Skip to content

Upgrade GHA versions #1650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/PR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/publishRelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -40,51 +40,51 @@ jobs:
- name: workflow-setup
id: workflow-setup
uses: hyperledger/indy-shared-gha/.github/actions/workflow-setup@v1

createRelease:
name: Create Release
needs: [release-infos]
if: needs.release-infos.outputs.isVersionBump == 'true'
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
workflow_conclusion: success
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
workflow_conclusion: success
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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/releasepr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/reuseable_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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

Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Triggered by set Tag

on:
push:
tags:
tags:
- setRelease-v**

jobs:
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -65,4 +65,3 @@ jobs:
body: "[${{ needs.taginfos.outputs.versionTag }}] - Update Version number for Release"
delete-branch: true
token: ${{ secrets.BOT_PR_PAT }}