forked from eu-sovereign-cloud/spec
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 862 Bytes
/
sdks-upgrade.yaml
File metadata and controls
31 lines (29 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
on:
release:
types: [published]
name: SDKs Upgrade
jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- name: Generate app token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
owner: eu-sovereign-cloud
repositories: go-sdk
- name: Dispatch to go-sdk repo
uses: actions/github-script@v7
with:
github-token: ${{ steps.app-token.outputs.token }}
script: |
await github.rest.repos.createDispatchEvent({
owner: 'eu-sovereign-cloud',
repo: 'go-sdk',
event_type: 'spec-upgrade',
client_payload: {
tag: '${{ github.event.release.tag_name }}'
}
})