name: Dispatch Extension Build

on:
  push:
    branches:
      - master

jobs:
  dispatch:
    runs-on: ubuntu-latest
    steps:
      - name: Dispatch to Extension Repo
        uses: peter-evans/repository-dispatch@v3
        with:
          token: ${{ secrets.DISPATCH_PAT }}
          repository: FrankerFaceZ/Extension
          event-type: build-trigger
          client-payload: |-
            {
              "repo": {
                "name": "${{ github.repository }}"
              }
            }
