|
5 | 5 | call-create-github-release-workflow: |
6 | 6 | uses: Keyfactor/actions/.github/workflows/github-release.yml@main |
7 | 7 |
|
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 |
20 | 10 |
|
21 | 11 | 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 |
24 | 14 | with: |
25 | 15 | release_version: ${{ needs.call-create-github-release-workflow.outputs.release_version }} |
26 | 16 | 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 | + |
28 | 19 | secrets: |
29 | 20 | token: ${{ secrets.PRIVATE_PACKAGE_ACCESS }} |
30 | 21 |
|
|
35 | 26 | token: ${{ secrets.APPROVE_README_PUSH }} |
36 | 27 |
|
37 | 28 | 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') |
40 | 31 | uses: Keyfactor/actions/.github/workflows/update-catalog.yml@main |
41 | 32 | secrets: |
42 | 33 | token: ${{ secrets.SDK_SYNC_PAT }} |
0 commit comments