Skip to content

Commit e5fef43

Browse files
committed
workflow: add trigger for Arduino Package Index update
Added a step to trigger the Arduino Package Index update after creating a GitHub release. This ensures that the package index is updated with the latest release information. Signed-off-by: ChihoSin [email protected]
1 parent 9bb5447 commit e5fef43

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/githubci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,11 @@ jobs:
3131
generate_release_notes: true
3232
env:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
35+
- name: Trigger Arduino Package Index Update
36+
run: |
37+
curl -X POST https://api.github.com/repos/fobe-projects/fobe-arduino-index/dispatches \
38+
-H "Accept: application/vnd.github+json" \
39+
-H "Authorization: Bearer ${{ secrets.FOBE_ARDUINO_INDEX_REPO_TOKEN }}" \
40+
-H "X-GitHub-Api-Version: 2022-11-28" \
41+
-d '{"event_type":"package-index-update"}'

0 commit comments

Comments
 (0)