Skip to content
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

Upgrade GHA versions #1833

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
8 changes: 4 additions & 4 deletions .github/actions/getNewNodeVersion/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/PR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/publishRelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -39,16 +39,16 @@ 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 Node deb Artifacts from Github Action Artifacts
uses: dawidd6/action-download-artifact@v2
with:
Expand All @@ -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
Expand Down Expand Up @@ -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 }}
Expand All @@ -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
Expand All @@ -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
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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/reuseable_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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 }}
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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@v3
uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Install deps for version change
Expand Down
Loading