-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 1.18 KB
/
notify-techapi.yml
File metadata and controls
33 lines (30 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: notify-techapi
# On every push to main, ping TechAPI so it bumps its TechEngine submodule
# pointer to the new commit. The bump itself happens in TechAPI's bump-engine.yml
# (triggered by this repository_dispatch); TechEngine only fires the signal.
#
# No loop: TechAPI's bump commit lands in TechAPI, never pushed back here.
# Requires TECHAPI_TOKEN (Contents: write on GetTechAPI/TechAPI) — already set.
on:
push:
branches: [main]
# Don't ping TechAPI for commits that only move the TechAPI submodule pointer
# (bump-techapi.yml's own bumps): TechAPI doesn't need to track those, and
# skipping them keeps each real change to exactly one bump — symmetric with
# TechAPI's notify-engine.yml ignoring its TechEngine gitlink.
paths-ignore:
- TechAPI
permissions:
contents: read
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Dispatch engine-updated to TechAPI
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.TECHAPI_TOKEN }}
repository: GetTechAPI/TechAPI
event-type: engine-updated
client-payload: |
{"sha": "${{ github.sha }}", "ref": "${{ github.ref }}"}