File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 11name : Regenerate Client
22
33on :
4- repository_dispatch :
5- types : [openapi-updated]
64 workflow_dispatch :
75
86jobs :
119 steps :
1210 - uses : actions/checkout@v4
1311
12+ - name : Generate GitHub App token
13+ id : app-token
14+ uses : actions/create-github-app-token@v2
15+ with :
16+ app-id : 3060111
17+ private-key : ${{ secrets.HOTDATA_AUTOMATION_PRIVATE_KEY }}
18+ owner : hotdata-dev
19+
1420 - name : Fetch merged OpenAPI spec
21+ env :
22+ GH_TOKEN : ${{ steps.app-token.outputs.token }}
1523 run : |
16- curl -sL https://raw.githubusercontent.com/hotdata-dev/www.hotdata.dev/main/api/openapi.yaml \
24+ curl -sS -f -L \
25+ -H "Accept: application/vnd.github.v3.raw" \
26+ -H "Authorization: Bearer $GH_TOKEN" \
27+ https://api.github.com/repos/hotdata-dev/www.hotdata.dev/contents/api/openapi.yaml \
1728 -o openapi.yaml
1829
1930 - name : Clean existing source
You can’t perform that action at this time.
0 commit comments