diff --git a/.github/workflows/websync.yml b/.github/workflows/websync.yml new file mode 100644 index 00000000..a7c32745 --- /dev/null +++ b/.github/workflows/websync.yml @@ -0,0 +1,26 @@ +# This is a basic workflow to help you get started with Actions + +name: Web Sync Push + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "main" branch + push: + branches: [ "main" ] + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + - name: Repository Dispatch + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.WEB_PAT }} + repository: ptero-eggs/egg-web-sync + event-type: sync + client-payload: '{"repo": "generic"}'