Archived
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 862bc1f1bd | |||
| 330754da53 | |||
| 3a7065b8f4 | |||
| 0bde5f2af1 |
@@ -16,6 +16,16 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Enforce source branch (stage ← dev only)
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
|
run: |
|
||||||
|
SOURCE="${GITHUB_HEAD_REF}"
|
||||||
|
if [ "${SOURCE}" != "dev" ]; then
|
||||||
|
echo "ERROR: Stage branch only accepts PRs from 'dev'. Source was: '${SOURCE}'"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo "Source branch check passed: ${SOURCE} → stage"
|
||||||
|
|
||||||
- name: Install build dependencies
|
- name: Install build dependencies
|
||||||
run: |
|
run: |
|
||||||
apt-get update -qq
|
apt-get update -qq
|
||||||
|
|||||||
@@ -16,6 +16,16 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Enforce source branch (main ← stage only)
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
|
run: |
|
||||||
|
SOURCE="${GITHUB_HEAD_REF}"
|
||||||
|
if [ "${SOURCE}" != "stage" ]; then
|
||||||
|
echo "ERROR: Main branch only accepts PRs from 'stage'. Source was: '${SOURCE}'"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo "Source branch check passed: ${SOURCE} → main"
|
||||||
|
|
||||||
- name: Install build dependencies
|
- name: Install build dependencies
|
||||||
run: |
|
run: |
|
||||||
apt-get update -qq
|
apt-get update -qq
|
||||||
@@ -135,17 +145,15 @@ jobs:
|
|||||||
echo "Published engram version=${VERSION} to foundation-prod/engram/engram"
|
echo "Published engram version=${VERSION} to foundation-prod/engram/engram"
|
||||||
rm -f /tmp/gcp-key.json
|
rm -f /tmp/gcp-key.json
|
||||||
|
|
||||||
# Dispatch engram-updated to any downstream dependents
|
# Dispatch engram-updated to downstream dependents
|
||||||
- name: Dispatch engram-updated to dependents
|
- name: Dispatch engram-updated to elql
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
GITEA_API: https://git.neuralplatform.ai/api/v1
|
GITEA_API: https://git.neuralplatform.ai/api/v1
|
||||||
run: |
|
run: |
|
||||||
# Add downstream repos here as the dependency graph grows
|
curl -sf -X POST \
|
||||||
echo "engram-updated dispatch ready (no downstream targets configured yet)"
|
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||||
# Example:
|
-H "Content-Type: application/json" \
|
||||||
# curl -sf -X POST \
|
"${GITEA_API}/repos/neuron-technologies/elql/dispatches" \
|
||||||
# -H "Authorization: token ${GITEA_TOKEN}" \
|
-d "{\"type\":\"engram-updated\",\"inputs\":{\"engram_version\":\"latest\",\"commit\":\"${GITHUB_SHA}\"}}"
|
||||||
# -H "Content-Type: application/json" \
|
echo "Dispatched engram-updated to neuron-technologies/elql"
|
||||||
# "${GITEA_API}/repos/neuron-technologies/some-service/dispatches" \
|
|
||||||
# -d '{"type":"engram-updated","inputs":{"engram_version":"latest","commit":"'"${GITHUB_SHA}"'"}}'
|
|
||||||
|
|||||||
Reference in New Issue
Block a user