Skip to content

Commit 5fd0c68

Browse files
TEMP: re-add branch-push validation trigger
Temporarily re-adds the on-branch validation scaffolding (push trigger + resolve push case + publish.if event==push clause) to exercise the full pipeline after the recent augmentations. To be removed after the run. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 78b727c commit 5fd0c68

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

.github/workflows/sdk-canary.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ on:
4040
- publish
4141
- publish-force
4242
- tests-only
43+
# TEMPORARY: branch-push trigger so we can validate the pipeline before the
44+
# workflow_dispatch entrypoint exists on main. Push events carry no dispatch
45+
# inputs, so the resolve job falls back to the currently pinned runtime from
46+
# public npm. Remove this trigger once validation is done (coupled with the
47+
# resolve `push)` case and the publish.if `event==push` clause).
48+
push: # TEMP: remove after on-branch validation
49+
branches: [mackinnonbuck-sdk-canary-compat-gate]
4350

4451
permissions:
4552
contents: read
@@ -84,6 +91,15 @@ jobs:
8491
# Only a human dispatch may pick a non-default publish mode.
8592
MODE="$INPUT_MODE"
8693
;;
94+
push)
95+
# TEMP (remove with the push trigger): no dispatch inputs on push,
96+
# so use the currently pinned public runtime. A green run proves the
97+
# pipeline mechanics end to end on-branch. Hardcoded (not read from
98+
# package.json) because the resolve job has no checkout.
99+
SOURCE="public"
100+
VERSION="1.0.69"
101+
MODE="publish"
102+
;;
87103
*)
88104
echo "::error::Unsupported event '$EVENT_NAME'."
89105
exit 1
@@ -235,13 +251,16 @@ jobs:
235251
# flake override, audited via the ::warning:: step below and the run actor.
236252
# publish-force only skips the e2e *signal* — the publish job still runs the
237253
# build (so a broken build can't publish) and enforces the feed-only guards.
254+
# TEMP: the `github.event_name == 'push'` clause below is a branch-validation
255+
# bypass coupled with the temporary push trigger; remove all three together.
238256
if: >
239257
!cancelled() &&
240258
github.event.repository.fork == false &&
241259
needs.resolve.result == 'success' &&
242260
needs.resolve.outputs.PUBLISH_MODE != 'tests-only' &&
243261
(needs.test.result == 'success' ||
244-
needs.resolve.outputs.PUBLISH_MODE == 'publish-force')
262+
needs.resolve.outputs.PUBLISH_MODE == 'publish-force' ||
263+
github.event_name == 'push')
245264
environment: cicd
246265
runs-on: ubuntu-latest
247266
permissions:

0 commit comments

Comments
 (0)