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 Website-img Repository | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| jobs: | |
| notify-main-repo: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Notify website-imgs repository | |
| run: | | |
| curl -X POST \ | |
| -H "Accept: application/vnd.github.v3+json" \ | |
| -H "Authorization: token ${{ secrets.WEBSITE_IMG_REPO_TOKEN }}" \ | |
| https://api.github.com/repos/JX3BOX/website-imgs/dispatches \ | |
| -d '{ | |
| "event_type": "jx3box_submodule_updated", | |
| "client_payload": { | |
| "submodule_name": "${{ github.repository }}", | |
| "repository": "${{ github.repository }}", | |
| "ref": "${{ github.ref }}", | |
| "sha": "${{ github.sha }}" | |
| } | |
| }' |