From 9c7f7530f33f323d0a5ea73aa852a6e45a73f189 Mon Sep 17 00:00:00 2001 From: Kevin Minehart <5140827+kminehart@users.noreply.github.com> Date: Tue, 19 Aug 2025 08:43:22 -0500 Subject: [PATCH] CI: Forward source-event from workflow_dispatch in release-build.yml (#109865) --- .github/workflows/release-build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 33288a4f971..322160a5665 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -103,10 +103,11 @@ jobs: BUILD_ID: ${{ github.run_id }} BUCKET: grafana-prerelease GRAFANA_COMMIT: ${{ needs.setup.outputs.grafana-commit }} + SOURCE_EVENT: ${{ inputs.source-event || github.event_name }} with: github-token: ${{ steps.generate_token.outputs.token }} script: | - const {REF, VERSION, BUILD_ID, BUCKET, GRAFANA_COMMIT, GITHUB_EVENT_NAME} = process.env; + const {REF, VERSION, BUILD_ID, BUCKET, GRAFANA_COMMIT, SOURCE_EVENT} = process.env; await github.rest.actions.createWorkflowDispatch({ owner: 'grafana', @@ -118,7 +119,7 @@ jobs: "build-id": String(BUILD_ID), "bucket": BUCKET, "grafana-commit": GRAFANA_COMMIT, - "source-event": GITHUB_EVENT_NAME, + "source-event": SOURCE_EVENT, } })