Skip to content

Commit 3ac229a

Browse files
ewowiclaude
andcommitted
Run the container rehearsal from a push on its own branch
The container-test workflow could not be started: a `workflow_dispatch` workflow is addressable only once its file sits on the default branch, so dispatching it from the branch that carries it fails with a 404 and no Run button appears. It now also triggers on a push to `docker-container`, which has no such requirement. That is how moonbase-test-release.yml was run for the MoonBase test releases. **Docs/CI** - `container-test.yml`: add a `push` trigger scoped to `docker-container`, so it cannot follow the code onto main. `workflow_dispatch` stays for a re-run without an empty commit, and starts working once main has the file. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent b94a833 commit 3ac229a

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

‎.github/workflows/container-test.yml‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,23 @@
1515
# DELETE THIS FILE once release.yml's publish-container job has run for real on main. It exists to
1616
# de-risk that first run, not to become a second way of releasing.
1717
#
18-
# Manual only, and it never touches the `latest` tag or any vX.Y.Z tag.
18+
# It never touches the `latest` tag or any vX.Y.Z tag.
1919
name: container test (temporary, prerelease)
2020

21+
# PUSH on this one branch, plus manual. The push trigger is what makes it runnable at all: a
22+
# `workflow_dispatch` workflow is addressable only once its file sits on the DEFAULT branch, because
23+
# GitHub resolves the name you dispatch against main, so dispatching this from its own branch fails
24+
# with a 404 and no Run button appears. A push trigger has no such requirement, and this is how
25+
# `moonbase-test-release.yml` was run for the MoonBase test releases.
26+
#
27+
# Scoped to `docker-container` so it cannot follow the code onto main: this file is deleted once
28+
# release.yml's publish-container job has run for real, and until then the branch name IS the guard.
29+
# `workflow_dispatch` stays for a re-run without an empty commit, and starts working once main has
30+
# the file.
2131
on:
32+
push:
33+
branches:
34+
- docker-container
2235
workflow_dispatch:
2336

2437
jobs:

0 commit comments

Comments
 (0)