diff --git a/.github/workflows/deploy-dic.yml b/.github/workflows/deploy-app.yaml similarity index 54% rename from .github/workflows/deploy-dic.yml rename to .github/workflows/deploy-app.yaml index 4596de11..64d6630f 100644 --- a/.github/workflows/deploy-dic.yml +++ b/.github/workflows/deploy-app.yaml @@ -13,9 +13,13 @@ jobs: timeout-minutes: 2 runs-on: ubuntu-latest env: - CFPAGES_DEPLOYMENT_WEBHOOK: ${{ secrets.CFPAGES_DEPLOYMENT_WEBHOOK }} + GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} steps: - name: Trigger genshin-dictionary deployment run: | - curl -X POST "${CFPAGES_DEPLOYMENT_WEBHOOK}" + curl -sS -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: token ${GH_PERSONAL_ACCESS_TOKEN}" \ + https://api.github.com/repos/xicri/genshin-dictionary/dispatches \ + -d '{ "event_type": "langdata-update" }' diff --git a/.github/workflows/main.yml b/.github/workflows/main.yaml similarity index 100% rename from .github/workflows/main.yml rename to .github/workflows/main.yaml