Update TGS API Spec #459
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 3.1.X | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 3.1.x | |
- name: Clone | |
uses: actions/checkout@v2 | |
- 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 |