Skip to content

Commit 59f7e1f

Browse files
committed
chore: automated sync of local changes
1 parent 097fc6f commit 59f7e1f

3 files changed

Lines changed: 27 additions & 11 deletions

File tree

.github/workflows/boj-build.yml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,46 @@
33
# OPTIONAL: BoJ Server Build Trigger
44
# This workflow notifies a BoJ Server instance when code is pushed.
55
# It is a no-op if BOJ_SERVER_URL is not set or the server is unreachable.
6-
# To enable: set the BOJ_SERVER_URL repository secret (e.g., http://boj-server.local:7700)
7-
# To disable: delete this file or leave the secret unset.
8-
#
6+
# To enable: set BOJ_SERVER_URL as a repository secret or variable.
7+
# To disable: delete this file or leave BOJ_SERVER_URL unset.
98
name: BoJ Server Build Trigger
9+
1010
on:
1111
push:
1212
branches: [main, master]
1313
workflow_dispatch:
14+
15+
permissions:
16+
contents: read
17+
1418
jobs:
1519
trigger-boj:
1620
runs-on: ubuntu-latest
1721
if: ${{ vars.BOJ_SERVER_URL != '' || secrets.BOJ_SERVER_URL != '' }}
1822
steps:
1923
- name: Checkout
2024
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
25+
2126
- name: Trigger BoJ Server (Casket/ssg-mcp)
2227
env:
2328
BOJ_URL: ${{ secrets.BOJ_SERVER_URL || vars.BOJ_SERVER_URL }}
29+
REPO_NAME: ${{ github.repository }}
30+
BRANCH_NAME: ${{ github.ref_name }}
2431
run: |
32+
set -euo pipefail
33+
2534
if [ -z "$BOJ_URL" ]; then
26-
echo "BOJ_SERVER_URL not configured skipping"
35+
echo "BOJ_SERVER_URL not configured - skipping"
2736
exit 0
2837
fi
38+
39+
payload="$(jq -cn \
40+
--arg repo "$REPO_NAME" \
41+
--arg branch "$BRANCH_NAME" \
42+
--arg engine "casket" \
43+
'{repo:$repo, branch:$branch, engine:$engine}')"
44+
2945
curl -sf -X POST "${BOJ_URL}/cartridges/ssg-mcp/invoke" \
3046
-H "Content-Type: application/json" \
31-
-d "{\"repo\": \"${{ github.repository }}\", \"branch\": \"${{ github.ref_name }}\", \"engine\": \"casket\"}" \
32-
|| echo "BoJ server unreachable — skipping (non-fatal)"
33-
permissions:
34-
contents: read
47+
--data "$payload" \
48+
|| echo "BoJ server unreachable - skipping (non-fatal)"

.github/workflows/dogfood-gate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
3939
- name: Validate A2ML manifests
4040
if: steps.detect.outputs.count > 0
41-
uses: hyperpolymath/a2ml-validate-action@main
41+
uses: hyperpolymath/a2ml-validate-action@cb3c1e298169dc5ac2b42e257068b0fb5920cd5e # main
4242
with:
4343
path: '.'
4444
strict: 'false'
@@ -86,7 +86,7 @@ jobs:
8686
8787
- name: Validate K9 contracts
8888
if: steps.detect.outputs.k9_count > 0
89-
uses: hyperpolymath/k9-validate-action@main
89+
uses: hyperpolymath/k9-validate-action@236f0035cc159051c8dd5dc7cd8af1e8cf961462 # main
9090
with:
9191
path: '.'
9292
strict: 'false'

.github/workflows/instant-sync.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,6 @@ jobs:
3030
}
3131
3232
- name: Confirm
33-
run: echo "::notice::Propagation triggered for ${{ github.event.repository.name }}"
33+
env:
34+
REPO_NAME: ${{ github.event.repository.name }}
35+
run: echo "::notice::Propagation triggered for ${REPO_NAME}"

0 commit comments

Comments
 (0)