We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ead725 commit 66c2806Copy full SHA for 66c2806
.github/workflows/update-code-snippets.yml
@@ -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
25
+ token: ${{ env.GITHUB_ACCESS_TOKEN }}
26
+ repository: api-specs
27
+ event-type: SnippetsUpdate
28
+ client-payload: '{"language": "python"}'
0 commit comments