CI: Use workflow_dispatch from release-build for canaries (#111365)

* CI: Use workflow_dispatch from release-build for canaries

* fix workflow name
This commit is contained in:
Josh Hunt
2025-09-19 11:23:58 +01:00
committed by GitHub
parent 15ee224da5
commit 75286f11f0
2 changed files with 24 additions and 1 deletions
+22
View File
@@ -287,6 +287,28 @@ jobs:
build_id: ${{ github.run_id }}
version_type: "canary"
dispatch-npm-canaries:
if: github.ref_name == 'main'
name: Dispatch publish NPM canaries
permissions:
actions: write
runs-on: ubuntu-x64-small
needs:
- setup
steps:
- name: Dispatch action
env:
GRAFANA_COMMIT: ${{ needs.setup.outputs.grafana-commit }}
VERSION: ${{ needs.setup.outputs.version }}
BUILD_ID: ${{ github.run_id }}
run: |
gh workflow run release-npm.yml \
--repo grafana/grafana \
--ref main \
--field grafana_commit="$GRAFANA_COMMIT" \
--field version="$VERSION" \
--field build_id="$BUILD_ID"
# notify-pr creates (or updates) a comment in a pull request to link to this workflow where the release artifacts are
# being built.
notify-pr:
+2 -1
View File
@@ -1,4 +1,5 @@
name: Publish NPM packages
name: Release NPM packages
run-name: Publish NPM ${{ inputs.version_type }} ${{ inputs.version }}
on:
workflow_call:
inputs: