Skip to content

Commit 5a9c6d4

Browse files
authored
update workflow (#63)
1 parent 6a2cc25 commit 5a9c6d4

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

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

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,26 @@ 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)"
20+
821
call-dotnet-build-and-release-workflow:
922
needs: [call-create-github-release-workflow]
1023
uses: Keyfactor/actions/.github/workflows/dotnet-build-and-release.yml@main
1124
with:
1225
release_version: ${{ needs.call-create-github-release-workflow.outputs.release_version }}
1326
release_url: ${{ needs.call-create-github-release-workflow.outputs.release_url }}
14-
release_dir: IISU/bin/Release/netcoreapp3.1
27+
release_dir: IISU/bin/Release/netcoreapp3.1
1528
secrets:
1629
token: ${{ secrets.PRIVATE_PACKAGE_ACCESS }}
1730

@@ -22,7 +35,10 @@ jobs:
2235
token: ${{ secrets.APPROVE_README_PUSH }}
2336

2437
call-update-catalog-workflow:
25-
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
38+
needs: get-manifest-properties
39+
if: needs.get-manifest-properties.outputs.update_catalog == 'True' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
2640
uses: Keyfactor/actions/.github/workflows/update-catalog.yml@main
2741
secrets:
2842
token: ${{ secrets.SDK_SYNC_PAT }}
43+
44+

0 commit comments

Comments
 (0)