mirror of
https://github.com/NatsumeLS/Gakumas-Translation-Data-EN.git
synced 2026-02-04 17:14:02 +00:00
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
name: Dispatch
|
|
|
|
on: [push, pull_request, workflow_dispatch]
|
|
|
|
jobs:
|
|
validate:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
|
|
- name: Validate JSON and YAML
|
|
id: json-yaml-validate
|
|
uses: GrantBirki/json-yaml-validate@v3
|
|
with:
|
|
use_gitignore: false
|
|
|
|
- name: Validate Resource
|
|
id: resource-validate
|
|
run: python ./scripts/resource_validator.py ./local-files/resource
|
|
|
|
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
|
|
|
|
- name: Send Notification to Discord
|
|
uses: sarisia/actions-status-discord@v1
|
|
if: always()
|
|
with:
|
|
webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
|
status: ${{ job.status }}
|
|
title: "Dispatch"
|