Skip to content

Commit fcedc55

Browse files
authored
[skip ci] Create keyfactor-merge-store-types.yml
1 parent e38c52d commit fcedc55

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Keyfactor Merge Cert Store Types
2+
on: [workflow_dispatch]
3+
4+
jobs:
5+
get-manifest-properties:
6+
runs-on: windows-latest
7+
outputs:
8+
update_catalog: ${{ steps.read-json.outputs.update_catalog }}
9+
integration_type: ${{ steps.read-json.outputs.integration_type }}
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Store json
13+
id: read-json
14+
shell: pwsh
15+
run: |
16+
$json = Get-Content integration-manifest.json | ConvertFrom-Json
17+
$myvar = $json.update_catalog
18+
echo "update_catalog=$myvar" | Out-File -FilePath $Env:GITHUB_OUTPUT -Encoding utf8 -Append
19+
$myvar = $json.integration_type
20+
echo "integration_type=$myvar" | Out-File -FilePath $Env:GITHUB_OUTPUT -Encoding utf8 -Append
21+
22+
call-update-store-types-workflow:
23+
needs: get-manifest-properties
24+
if: needs.get-manifest-properties.outputs.integration_type == 'orchestrator' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
25+
uses: Keyfactor/actions/.github/workflows/update-store-types.yml@main
26+
secrets:
27+
token: ${{ secrets.UPDATE_STORE_TYPES }}

0 commit comments

Comments
 (0)