Skip to content

Commit

Permalink
included sovrin checking and corrected version for subactions
Browse files Browse the repository at this point in the history
Signed-off-by: pSchlarb <[email protected]>

Update .github/actions/workflow-setup/action.yaml

Co-authored-by: Wade Barnes <[email protected]>

generalized owner Repo

Signed-off-by: pSchlarb <[email protected]>
  • Loading branch information
pSchlarb authored and WadeBarnes committed Aug 22, 2022
1 parent e016783 commit 05e37f8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
9 changes: 7 additions & 2 deletions .github/actions/workflow-setup/action.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: "Hyperledger Indy Workflow Setup"
description: "Gets the relevant information for the workflow"

inputs:
ownerRepo:
description: The main repo of the work
default: "hyperledger"
required: false
outputs:
CACHE_KEY_BUILD:
description: "A Hash of the Dockerfile for checking if rebuild is needed"
Expand Down Expand Up @@ -42,8 +47,8 @@ runs:
echo "::set-output name=UBUNTU_VERSION::ubuntu-2004"
echo "::set-output name=distribution::focal"
# Ensure publishing is only performed when the build is executed from the main (hyperledger/indy-plenum) repository.
if [[ ${{ github.repository_owner }} == 'hyperledger' ]]; then
# Ensure publishing is only performed when the build is executed from the main organization.
if [[ ${{ github.repository_owner }} == '${{ inputs.ownerRepo }}' ]]; then
echo "::set-output name=publish::true"
else
echo "::set-output name=publish::false"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/buildpackages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

- name: Set Build Version
id: version
uses: hyperledger/indy-shared-gha/.github/actions/set-version@v1.0.0
uses: hyperledger/indy-shared-gha/.github/actions/set-version@v1
with:
moduleName: ${{ inputs.moduleName }}
isDev: ${{ inputs.isDev }}
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
- name: Set Build Version
id: version
uses: hyperledger/indy-shared-gha/.github/actions/set-version@v1.0.0
uses: hyperledger/indy-shared-gha/.github/actions/set-version@v1
with:
moduleName: ${{ inputs.moduleName }}
isDev: ${{ inputs.isDev }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish_artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
path: to_publish

- name: Publish Artifacts
uses: hyperledger/indy-shared-gha/.github/actions/publish-deb@v1.0.0
uses: hyperledger/indy-shared-gha/.github/actions/publish-deb@v1
with:
sourceDirectory: ./to_publish
distribution: ${{ inputs.distribution }}
Expand All @@ -65,7 +65,7 @@ jobs:
path: ./third-party-dependencies_to_publish

- name: Publish 3rd Party Dependencies
uses: hyperledger/indy-shared-gha/.github/actions/publish-deb@v1.0.0
uses: hyperledger/indy-shared-gha/.github/actions/publish-deb@v1
with:
sourceDirectory: ./third-party-dependencies_to_publish
distribution: ${{ inputs.distribution }}
Expand Down

0 comments on commit 05e37f8

Please sign in to comment.