generated from peter-evans/swagger-github-pages
-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (33 loc) · 981 Bytes
/
update-tgs-api.yml
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
32
33
34
35
36
37
name: Update TGS API Spec
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
updateSwagger:
name: Update the TGS API Spec
runs-on: ubuntu-latest
steps:
- name: Setup dotnet 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Clone
uses: actions/checkout@v4
- name: Apply API update
run: |
cd src/Tgstation.Server.ApiUpdater
dotnet run -- ${{ secrets.GITHUB_TOKEN }} ${{ github.workspace }}
- name: Commit
continue-on-error: true
run: |
git config user.name tgstation-server
git config user.email [email protected]
git add .
git commit -m 'Automatic update to latest TGS API'
- name: Push
uses: ad-m/github-push-action@master
if: ${{ success() }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: master