Skip to content

Update API

Update API #1

Workflow file for this run

name: Update API
on:
push:
branches:
- ${{ github.event.repository.default_branch }}

Check failure on line 7 in .github/workflows/update_api.yml

View workflow run for this annotation

GitHub Actions / Update API

Invalid workflow file

The workflow is not valid. .github/workflows/update_api.yml (Line: 7, Col: 9): Unrecognized named-value: 'github'. Located at position 1 within expression: github.event.repository.default_branch
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