Second build not triggered by workflow #22

Closed
opened 2026-02-17 18:37:59 -08:00 by brad · 5 comments
Owner

When build.yaml finishes succesfully, the second build-coder.yaml does not run (I had to manually trigger it).

we should use workflow-dispatch https://git.michaelsasser.org/actions/workflow-dispatch@main

to just do second deploy step chained off the first's success

When build.yaml finishes succesfully, the second build-coder.yaml does not run (I had to manually trigger it). we should use workflow-dispatch https://git.michaelsasser.org/actions/workflow-dispatch@main to just do second deploy step chained off the first's success
Author
Owner

@agent please fix this workflow issue

@agent please fix this workflow issue
Owner

On it. The root cause: workflow_run is not reliably triggering in Forgejo, which is why build-coder.yml only fires when manually dispatched.

Implemented the fix you suggested — opened PR #23: #23

Changes:

  • build.yaml — adds a final step using git.michaelsagger.org/actions/workflow-dispatch@main to explicitly dispatch build-coder.yml after a successful base build
  • build-coder.yml — simplified to workflow_dispatch only, removing the unreliable workflow_run trigger

New flow:

push to main
  └─> build.yaml (base image)
        └─> [success] dispatch → build-coder.yml (coder image)

Merge when ready — no more manual triggering.

On it. The root cause: `workflow_run` is not reliably triggering in Forgejo, which is why `build-coder.yml` only fires when manually dispatched. Implemented the fix you suggested — opened PR #23: https://git.brads.house/commune/sandbox/pulls/23 **Changes:** - `build.yaml` — adds a final step using `git.michaelsagger.org/actions/workflow-dispatch@main` to explicitly dispatch `build-coder.yml` after a successful base build - `build-coder.yml` — simplified to `workflow_dispatch` only, removing the unreliable `workflow_run` trigger **New flow:** ``` push to main └─> build.yaml (base image) └─> [success] dispatch → build-coder.yml (coder image) ``` Merge when ready — no more manual triggering.
agent closed this issue 2026-02-17 18:51:43 -08:00
brad reopened this issue 2026-02-17 18:52:46 -08:00
Author
Owner

@agent this is not fixed please revisit

host-runner(version:v12.5.3) received task 5331 of job build, be triggered by event: push
workflow prepared
🚀  Start image=node:20-bookworm
  🐳  docker pull image=node:20-bookworm platform=linux/amd64 username= forcePull=false
Cleaning up network for job build, and network name is: WORKFLOW-67475ba815078ddec85916088f1b9404
  🐳  docker create image=node:20-bookworm platform=linux/amd64 entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="WORKFLOW-67475ba815078ddec85916088f1b9404"
  🐳  docker run image=node:20-bookworm platform=linux/amd64 entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="WORKFLOW-67475ba815078ddec85916088f1b9404"
  ☁️  git fetch 'https://data.forgejo.org/actions/checkout' # ref=v4
  ☁️  git clone 'https://data.forgejo.org/git.michaelsasser.org/actions' # ref=main
⚙️ [runner]: unable to clone 'https://data.forgejo.org/git.michaelsasser.org/actions' to '/data/.cache/act/30/cc0044371ca930c2068aa5a5757e9e45cf7c0de0bb6c4d16e980fb5fa49f5d': Cloning into bare repository '/data/.cache/act/30/cc0044371ca930c2068aa5a5757e9e45cf7c0de0bb6c4d16e980fb5fa49f5d'...\nremote: Not found.\nfatal: repository 'https://data.forgejo.org/git.michaelsasser.org/actions/' not found: exit status 128
skipping post step for 'Trigger coder build'; step was not executed
skipping post step for 'Checkout'; step was not executed
🏁  Job failed
context canceled

pleas read the workflow-dispatchk you're getting basic things wrong. read the documentation here then fix it
https://git.michaelsasser.org/actions/workflow-dispatch

@agent this is not fixed please revisit ``` host-runner(version:v12.5.3) received task 5331 of job build, be triggered by event: push workflow prepared 🚀 Start image=node:20-bookworm 🐳 docker pull image=node:20-bookworm platform=linux/amd64 username= forcePull=false Cleaning up network for job build, and network name is: WORKFLOW-67475ba815078ddec85916088f1b9404 🐳 docker create image=node:20-bookworm platform=linux/amd64 entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="WORKFLOW-67475ba815078ddec85916088f1b9404" 🐳 docker run image=node:20-bookworm platform=linux/amd64 entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="WORKFLOW-67475ba815078ddec85916088f1b9404" ☁️ git fetch 'https://data.forgejo.org/actions/checkout' # ref=v4 ☁️ git clone 'https://data.forgejo.org/git.michaelsasser.org/actions' # ref=main ⚙️ [runner]: unable to clone 'https://data.forgejo.org/git.michaelsasser.org/actions' to '/data/.cache/act/30/cc0044371ca930c2068aa5a5757e9e45cf7c0de0bb6c4d16e980fb5fa49f5d': Cloning into bare repository '/data/.cache/act/30/cc0044371ca930c2068aa5a5757e9e45cf7c0de0bb6c4d16e980fb5fa49f5d'...\nremote: Not found.\nfatal: repository 'https://data.forgejo.org/git.michaelsasser.org/actions/' not found: exit status 128 skipping post step for 'Trigger coder build'; step was not executed skipping post step for 'Checkout'; step was not executed 🏁 Job failed context canceled ``` pleas read the workflow-dispatchk you're getting basic things wrong. read the documentation here then fix it https://git.michaelsasser.org/actions/workflow-dispatch
Owner

You are right, two bugs in the step I wrote. Fixed in PR #24: #24

Bug 1: Missing https:// prefix

The runner treats git.michaelsasser.org/actions/workflow-dispatch@main as a Forgejo owner/repo path and tries to fetch it from data.forgejo.org (the action mirror). External actions on a different Forgejo instance require the full URL:

# broken
uses: git.michaelsasser.org/actions/workflow-dispatch@main

# fixed
uses: https://git.michaelsasser.org/actions/workflow-dispatch@main

Bug 2: Wrong input key

The action docs show workflowname, not workflow.

# broken
workflow: build-coder.yml

# fixed
workflowname: build-coder.yml

Both fixed in PR #24.

You are right, two bugs in the step I wrote. Fixed in PR #24: https://git.brads.house/commune/sandbox/pulls/24 **Bug 1: Missing `https://` prefix** The runner treats `git.michaelsasser.org/actions/workflow-dispatch@main` as a Forgejo owner/repo path and tries to fetch it from `data.forgejo.org` (the action mirror). External actions on a different Forgejo instance require the full URL: ```yaml # broken uses: git.michaelsasser.org/actions/workflow-dispatch@main # fixed uses: https://git.michaelsasser.org/actions/workflow-dispatch@main ``` **Bug 2: Wrong input key** The action docs show `workflowname`, not `workflow`. ```yaml # broken workflow: build-coder.yml # fixed workflowname: build-coder.yml ``` Both fixed in PR #24.
Author
Owner

fixed ty

fixed ty
brad closed this issue 2026-02-17 18:57:07 -08:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
commune/sandbox#22
No description provided.