Skip to content

Commit 66c2806

Browse files
committed
SWI-7344 Add Code Snippets Workflow
1 parent 8ead725 commit 66c2806

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Update Code Snippets
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
update_code_snippets:
11+
name: Repository Dispatch to Update Code Snippets
12+
runs-on: ${{ fromJSON(vars.SWI_GLORG_UBUNTU_2204) }}
13+
permissions:
14+
id-token: write
15+
contents: read
16+
steps:
17+
- name: Get Github Token from Vault
18+
uses: Bandwidth/vault-provider-action@v1
19+
with:
20+
export-github-pat: true
21+
22+
- name: Send Repository Dispatch Event
23+
uses: Bandwidth/[email protected]
24+
with:
25+
token: ${{ env.GITHUB_ACCESS_TOKEN }}
26+
repository: api-specs
27+
event-type: SnippetsUpdate
28+
client-payload: '{"language": "python"}'

0 commit comments

Comments
 (0)