diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml new file mode 100644 index 00000000..6ff39b1f --- /dev/null +++ b/.github/workflows/dispatch.yml @@ -0,0 +1,32 @@ +name: Dispatch + +on: [push, pull_request, workflow_dispatch] + +jobs: + validate: + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Validate + id: json-yaml-validate + uses: GrantBirki/json-yaml-validate@v3 + with: + use_gitignore: false + + dispatch: + + runs-on: ubuntu-latest + + needs: validate + + steps: + - name: Dispatch Update Submodule to Gakumas-Localify-EN + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.PAT }} + repository: NatsumeLS/Gakumas-Localify-EN + event-type: update-submodule diff --git a/.github/workflows/dispatch_update.yml b/.github/workflows/dispatch_update.yml deleted file mode 100644 index 653ebf33..00000000 --- a/.github/workflows/dispatch_update.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Dispatch - -on: [push, pull_request, workflow_dispatch] - -jobs: - dispatch: - - runs-on: ubuntu-latest - - steps: - - name: Dispatch Update to Gakumas-Localify-EN - uses: peter-evans/repository-dispatch@v3 - with: - token: ${{ secrets.PAT }} - repository: NatsumeLS/Gakumas-Localify-EN - event-type: update-submodule diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml deleted file mode 100644 index b6284a50..00000000 --- a/.github/workflows/validate.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Validator - -on: [push, pull_request, workflow_dispatch] - -permissions: - contents: read - pull-requests: write - -jobs: - validate: - - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Validate - id: json-yaml-validate - uses: GrantBirki/json-yaml-validate@v3 - with: - comment: "true" - use_gitignore: "false" diff --git a/README.md b/README.md index c9d4fe8a..ee936d1e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ [![](https://img.shields.io/endpoint?url=https://hits.dwyl.com/NatsumeLS/Gakumas-Translation-Data-EN.json?color=pink&style=flat-square&label=Views)](https://github.com/NatsumeLS/Gakumas-Translation-Data-EN/graphs/traffic) -[![](https://img.shields.io/github/actions/workflow/status/NatsumeLS/Gakumas-Translation-Data-EN/dispatch_update.yml?style=flat-square&label=Dispatch)](https://github.com/NatsumeLS/Gakumas-Translation-Data-EN/actions/workflows/build.yml) +[![](https://img.shields.io/github/actions/workflow/status/NatsumeLS/Gakumas-Translation-Data-EN/dispatch.yml?style=flat-square&label=Dispatch)](https://github.com/NatsumeLS/Gakumas-Translation-Data-EN/actions/workflows/dispatch.yml) [![](https://dcbadge.limes.pink/api/server/https://discord.gg/qARc4Hdc3n)](https://natsume.io/GakumasLocalize)