From e9225ca4a620a049f6444049d60c4d8c77abffdb Mon Sep 17 00:00:00 2001 From: Ethan Arrowood Date: Fri, 30 Oct 2026 20:03:28 -0600 Subject: [PATCH] build: trigger devcontainer build from daily Sends a node-daily event to the nodejs/devcontainer repo to trigger a new devcontainer build upon a successful daily build. It shares the specific associated commit so the exact devcontainer is built. Requires: https://github.com/nodejs/devcontainer/pull/31 Signed-off-by: Ethan Arrowood --- .github/workflows/daily.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 9fb09d56bbba..ebf9b1648acc 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -28,3 +28,18 @@ jobs: sudo apt-get update && sudo apt-get install ninja-build -y ./configure --enable-lto --ninja ninja -C out/Release + + # Once main builds, tell nodejs/devcontainer to publish new nightly images from the same commit. + # Its build workflow listens for this `node-daily` event. + trigger-devcontainer: + needs: build-lto + if: github.repository == 'nodejs/node' && github.ref == 'refs/heads/main' + runs-on: ubuntu-slim + steps: + - name: Dispatch a nodejs/devcontainer build + run: | + gh api repos/nodejs/devcontainer/dispatches \ + -f event_type=node-daily \ + -f "client_payload[sha]=$GITHUB_SHA" + env: + GH_TOKEN: ${{ secrets.GH_USER_TOKEN }}