|
1 | | -name: Starter Workflow |
2 | | -on: [workflow_dispatch, push, pull_request] |
| 1 | +name: Keyfactor Bootstrap Workflow |
3 | 2 |
|
4 | | -jobs: |
5 | | - call-create-github-release-workflow: |
6 | | - uses: Keyfactor/actions/.github/workflows/github-release.yml@main |
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)" |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + pull_request: |
| 6 | + types: [opened, closed, synchronize, edited, reopened] |
| 7 | + push: |
| 8 | + create: |
| 9 | + branches: |
| 10 | + - 'release-*.*' |
20 | 11 |
|
21 | | - call-dotnet-build-and-release-workflow: |
22 | | - needs: [call-create-github-release-workflow] |
23 | | - uses: Keyfactor/actions/.github/workflows/dotnet-build-and-release.yml@main |
24 | | - with: |
25 | | - release_version: ${{ needs.call-create-github-release-workflow.outputs.release_version }} |
26 | | - release_url: ${{ needs.call-create-github-release-workflow.outputs.release_url }} |
27 | | - release_dir: IISU/bin/Release/net6.0 |
28 | | - secrets: |
29 | | - token: ${{ secrets.PRIVATE_PACKAGE_ACCESS }} |
30 | | - |
31 | | - call-generate-readme-workflow: |
32 | | - if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' |
33 | | - uses: Keyfactor/actions/.github/workflows/generate-readme.yml@main |
| 12 | +jobs: |
| 13 | + call-starter-workflow: |
| 14 | + uses: keyfactor/actions/.github/workflows/starter.yml@v2 |
34 | 15 | secrets: |
35 | | - token: ${{ secrets.APPROVE_README_PUSH }} |
36 | | - |
37 | | - 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') |
40 | | - uses: Keyfactor/actions/.github/workflows/update-catalog.yml@main |
41 | | - secrets: |
42 | | - token: ${{ secrets.SDK_SYNC_PAT }} |
43 | | - |
44 | | - |
| 16 | + token: ${{ secrets.V2BUILDTOKEN}} |
| 17 | + APPROVE_README_PUSH: ${{ secrets.APPROVE_README_PUSH}} |
| 18 | + gpg_key: ${{ secrets.KF_GPG_PRIVATE_KEY }} |
| 19 | + gpg_pass: ${{ secrets.KF_GPG_PASSPHRASE }} |
0 commit comments