Skip to content

Commit 9af591a

Browse files
committed
ci: harden homepage deployment sync
1 parent ea0cb01 commit 9af591a

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/bump-engine.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ concurrency:
2121
jobs:
2222
bump:
2323
runs-on: ubuntu-latest
24+
env:
25+
ENGINE_TOKEN: ${{ secrets.ENGINE_TOKEN }}
2426
steps:
2527
- uses: actions/checkout@v4
2628
with:
@@ -39,6 +41,7 @@ jobs:
3941
fi
4042
4143
- name: Commit & push bump
44+
id: commit
4245
if: steps.bump.outputs.changed == 'true'
4346
run: |
4447
NEW_SHA=$(git -C TechEngine rev-parse --short HEAD)
@@ -49,3 +52,14 @@ jobs:
4952
git add TechEngine
5053
git commit -m "chore: bump TechEngine submodule to ${NEW_SHA}"
5154
git push
55+
echo "techapi_sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
56+
57+
- name: Dispatch reciprocal TechAPI bump to TechEngine
58+
if: steps.bump.outputs.changed == 'true' && env.ENGINE_TOKEN != ''
59+
uses: peter-evans/repository-dispatch@v3
60+
with:
61+
token: ${{ secrets.ENGINE_TOKEN }}
62+
repository: GetTechAPI/TechEngine
63+
event-type: techapi-updated
64+
client-payload: |
65+
{"sha": "${{ steps.commit.outputs.techapi_sha }}", "ref": "refs/heads/main"}

.github/workflows/deploy-pages.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ name: deploy-pages
88
on:
99
push:
1010
branches: [main]
11-
paths:
12-
- "site/**"
13-
- ".github/workflows/deploy-pages.yml"
1411
workflow_dispatch:
1512

1613
permissions:

0 commit comments

Comments
 (0)