patterns: Added GBA ROM pattern (#323) #956
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: "Dispatch" | |
on: | |
push: | |
branches: [ '*' ] | |
pull_request: | |
branches: [ '*' ] | |
repository_dispatch: | |
types: [run_tests] | |
workflow_dispatch: | |
inputs: | |
generate_docs: | |
description: "Regenerate docs" | |
required: false | |
type: boolean | |
jobs: | |
tests: | |
name: 🎯 Dispatch changes | |
runs-on: ubuntu-22.04 | |
env: | |
DISPATCH_TOKEN: ${{ secrets.DISPATCH_TOKEN }} | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
steps: | |
- name: 🧰 Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: 📄 Check changed include files | |
id: changed-includes | |
uses: tj-actions/changed-files@v45 | |
with: | |
files: includes/**/*.pat | |
- name: ✉️ Run Documentation generator | |
if: ${{ env.DISPATCH_TOKEN != '' && (steps.changed-includes.outputs.any_changed == 'true' || inputs.generate_docs || github.event_name == 'repository_dispatch' ) }} | |
uses: mvasigh/dispatch-action@main | |
with: | |
token: ${{ secrets.DISPATCH_TOKEN }} | |
repo: Documentation | |
owner: WerWolv | |
event_type: update_pl_docs | |
- name: ✉️ Update PatternLanguage Website | |
if: ${{ env.DISPATCH_TOKEN != '' }} | |
uses: mvasigh/dispatch-action@main | |
with: | |
token: ${{ secrets.DISPATCH_TOKEN }} | |
repo: PatternLanguageWeb | |
owner: WerWolv | |
event_type: rebuild_wasm |