Skip to content

Commit 6f7ae0b

Browse files
author
Michael Henderson
committed
updated to latest workflow, add release_dir to manifest
1 parent ac01373 commit 6f7ae0b

File tree

2 files changed

+10
-18
lines changed

2 files changed

+10
-18
lines changed

.github/workflows/keyfactor-starter-workflow.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,17 @@ jobs:
55
call-create-github-release-workflow:
66
uses: Keyfactor/actions/.github/workflows/github-release.yml@main
77

8-
get-manifest-properties:
9-
runs-on: windows-latest
10-
outputs:
11-
update_catalog: ${{ steps.read-json.outputs.prop }}
12-
steps:
13-
- uses: actions/checkout@v3
14-
- name: Read json
15-
id: read-json
16-
shell: pwsh
17-
run: |
18-
$json = Get-Content integration-manifest.json | ConvertFrom-Json
19-
echo "::set-output name=prop::$(echo $json.update_catalog)"
8+
call-assign-from-json-workflow:
9+
uses: Keyfactor/actions/.github/workflows/assign-env-from-json.yml@main
2010

2111
call-dotnet-build-and-release-workflow:
22-
needs: [call-create-github-release-workflow]
23-
uses: Keyfactor/actions/.github/workflows/dotnet-build-and-release.yml@net6
12+
needs: [call-create-github-release-workflow, call-assign-from-json-workflow]
13+
uses: Keyfactor/actions/.github/workflows/dotnet-build-and-release.yml@main
2414
with:
2515
release_version: ${{ needs.call-create-github-release-workflow.outputs.release_version }}
2616
release_url: ${{ needs.call-create-github-release-workflow.outputs.release_url }}
27-
release_dir: digicert-metadata-sync\bin\Release\net6.0
17+
release_dir: ${{ needs.call-assign-from-json-workflow.outputs.release_dir }}
18+
2819
secrets:
2920
token: ${{ secrets.PRIVATE_PACKAGE_ACCESS }}
3021

@@ -35,8 +26,8 @@ jobs:
3526
token: ${{ secrets.APPROVE_README_PUSH }}
3627

3728
call-update-catalog-workflow:
38-
needs: get-manifest-properties
39-
if: needs.get-manifest-properties.outputs.update_catalog == 'True' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
29+
needs: call-assign-from-json-workflow
30+
if: needs.call-assign-from-json-workflow.outputs.update_catalog == 'True' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
4031
uses: Keyfactor/actions/.github/workflows/update-catalog.yml@main
4132
secrets:
4233
token: ${{ secrets.SDK_SYNC_PAT }}

integration-manifest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
"description": "A tool to automatically synchronize metadata fields and their content from DigiCert to Keyfactor. This utility is indented to be used in conjunction with the Digicert AnyGateway and adds to the information already synchronized by the gateway.",
77
"link_github": true,
88
"update_catalog": true,
9-
"support_level": "kf-community"
9+
"support_level": "kf-community",
10+
"release_dir": "digicert-metadata-sync\\bin\\Release\\net6.0 "
1011
}

0 commit comments

Comments
 (0)