Skip to content

Commit fd6f768

Browse files
[release-11.5.9] CI: Fix NPM workflow inputs (#111349)
Fix referring to inputs (#111345) (cherry picked from commit 1d6c1da) Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com>
1 parent 7bc45e5 commit fd6f768

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/release-npm.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
- name: Info
5252
env:
5353
GITHUB_REF: ${{ github.ref }}
54+
GRAFANA_COMMIT: ${{ inputs.grafana_commit }}
5455
run: |
5556
echo "GRAFANA_COMMIT: $GRAFANA_COMMIT"
5657
echo "github.ref: $GITHUB_REF"
@@ -66,15 +67,15 @@ jobs:
6667
# not in the last 100 commits.
6768
- name: Verify commit is in workflow HEAD
6869
env:
69-
GIT_COMMIT: ${{ github.event.inputs.grafana_commit }}
70+
GIT_COMMIT: ${{ inputs.grafana_commit }}
7071
run: ./.github/workflows/scripts/validate-commit-in-head.sh
7172
shell: bash
7273

7374
- name: Map version type to NPM tag
7475
id: npm-tag
7576
env:
76-
VERSION: ${{ github.event.inputs.version }}
77-
VERSION_TYPE: ${{ github.event.inputs.version_type }}
77+
VERSION: ${{ inputs.version }}
78+
VERSION_TYPE: ${{ inputs.version_type }}
7879
REFERENCE_PKG: "@grafana/runtime"
7980
run: |
8081
TAG=$(./.github/workflows/scripts/determine-npm-tag.sh)
@@ -85,7 +86,7 @@ jobs:
8586
uses: actions/checkout@v4
8687
with:
8788
persist-credentials: false
88-
ref: ${{ github.event.inputs.grafana_commit }}
89+
ref: ${{ inputs.grafana_commit }}
8990

9091
- name: Setup Node
9192
uses: ./.github/actions/setup-node
@@ -102,7 +103,7 @@ jobs:
102103

103104
- name: Version, build, and pack packages
104105
env:
105-
VERSION: ${{ github.event.inputs.version }}
106+
VERSION: ${{ inputs.version }}
106107
run: |
107108
yarn run packages:build
108109
yarn lerna version "$VERSION" \

0 commit comments

Comments
 (0)