File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ concurrency:
2121jobs :
2222 bump :
2323 runs-on : ubuntu-latest
24+ env :
25+ ENGINE_TOKEN : ${{ secrets.ENGINE_TOKEN }}
2426 steps :
2527 - uses : actions/checkout@v4
2628 with :
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)
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"}
Original file line number Diff line number Diff line change @@ -8,9 +8,6 @@ name: deploy-pages
88on :
99 push :
1010 branches : [main]
11- paths :
12- - " site/**"
13- - " .github/workflows/deploy-pages.yml"
1411 workflow_dispatch :
1512
1613permissions :
You can’t perform that action at this time.
0 commit comments