Merge pull request #31 from yatikakain/main #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: Trigger Website Rebuild on Ideas Update | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'GSoC-Ideas/**' # Only trigger when files in GSoC-Ideas folder change | |
| jobs: | |
| notify-website: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Trigger website rebuild | |
| run: | | |
| curl -L \ | |
| -X POST \ | |
| -H "Accept: application/vnd.github+json" \ | |
| -H "Authorization: Bearer ${{ secrets.WEBSITE_REBUILD_TOKEN }}" \ | |
| -H "X-GitHub-Api-Version: 2022-11-28" \ | |
| https://api.github.com/repos/AOSSIE-Org/website/dispatches \ | |
| -d '{"event_type":"ideas-updated","client_payload":{"updated_by":"${{ github.actor }}","commit":"${{ github.sha }}"}}' | |
| - name: Log trigger | |
| run: | | |
| echo "Website rebuild triggered by GSoC-Ideas update" | |
| echo "Commit: ${{ github.sha }}" | |
| echo "Author: ${{ github.actor }}" | |