Add notify store workflow #1
This file contains hidden or 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: Notify Store | |
| on: | |
| push: | |
| branches: | |
| - main # Change to your default branch or use 'tags: ["*"]' if you only want this on new versions | |
| jobs: | |
| notify: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Trigger Store Update | |
| run: | | |
| curl -X POST \ | |
| -H "Accept: application/vnd.github+json" \ | |
| -H "Authorization: Bearer ${{ secrets.STORE_AUTOMATION_TOKEN }}" \ | |
| https://api.github.com/repos/StreamController/StreamController-Store/dispatches \ | |
| -d '{ | |
| "event_type": "plugin_updated", | |
| "client_payload": { | |
| "repo_url": "https://github.com/${{ github.repository }}", | |
| "version": "${{ github.ref_name }}", | |
| "commit_sha": "${{ github.sha }}" | |
| } | |
| }' |