Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reconfigure trigger #311

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions .github/workflows/trigger-website-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,21 @@ on:
- main

jobs:
trigger_build_via_norns_community_merge:
trigger:
runs-on: ubuntu-latest

steps:
- name: "Trigger https://norns.community Build"
run: |
curl -X POST \
-H "Accept: application/vnd.github.everest-preview+json" \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-d '{"event_type": "trigger_build_via_norns_community_merge"}' \
https://api.github.com/repos/monome-community/norns-community/dispatches
# Set the required variables
repo_owner="monome-community"
repo_name="norns-community
event_type="trigger_build_via_norns_community_merge"

curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.PAT }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/$repo_owner/$repo_name/dispatches \
-d "{\"event_type\": \"$event_type\", \"client_payload\": {\"unit\": false, \"integration\": true}}"
Loading