Update API #1
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 API | ||
on: | ||
push: | ||
branches: | ||
- ${{ github.event.repository.default_branch }} | ||
Check failure on line 7 in .github/workflows/update_api.yml GitHub Actions / Update APIInvalid workflow file
|
||
paths: | ||
- '**/src/main/resources/supporters.json' | ||
- '**/src/main/resources/default_remote_config.json' | ||
workflow_dispatch: | ||
jobs: | ||
upload: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Upload supporters | ||
uses: wei/curl@v1 | ||
with: | ||
args: | | ||
-X 'POST' 'https://api.vampirism.dev/api/v1/supporter/set' -H 'x-api-key: ${{ secrets.VAMPIRISM_API }}' -H 'Content-Type: application/json' --upload-file src/main/resources/supporters.json | ||
- name: Upload settings | ||
uses: wei/curl@v1 | ||
with: | ||
args: | | ||
-X 'POST' 'https://api.vampirism.dev/api/v1/config/set' -H 'x-api-key: ${{ secrets.VAMPIRISM_API }}' -H 'Content-Type: application/json' --upload-file src/main/resources/default_remote_config.json |