diff --git a/.github/workflows/dispatch-sync.yml b/.github/workflows/dispatch-sync.yml new file mode 100644 index 0000000..b58875c --- /dev/null +++ b/.github/workflows/dispatch-sync.yml @@ -0,0 +1,18 @@ +name: Notify internal sync + +on: + push: + branches: [main] + +jobs: + notify: + runs-on: ubuntu-latest + steps: + - name: Dispatch public-updated to internal + uses: peter-evans/repository-dispatch@v4 + with: + token: ${{ secrets.INTERNAL_DISPATCH_TOKEN }} + repository: leancodepl/ai-plugins-internal + event-type: public-updated + client-payload: | + {"ref": "${{ github.ref_name }}", "sha": "${{ github.sha }}"}