mirror of https://github.com/grafana/grafana.git
[release-12.2.1] CI: Fix NPM workflow inputs (#111350)
Fix referring to inputs (#111345)
(cherry picked from commit 1d6c1da94f
)
Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com>
This commit is contained in:
parent
e5a98c3c43
commit
7d205c7dee
|
@ -51,6 +51,7 @@ jobs:
|
||||||
- name: Info
|
- name: Info
|
||||||
env:
|
env:
|
||||||
GITHUB_REF: ${{ github.ref }}
|
GITHUB_REF: ${{ github.ref }}
|
||||||
|
GRAFANA_COMMIT: ${{ inputs.grafana_commit }}
|
||||||
run: |
|
run: |
|
||||||
echo "GRAFANA_COMMIT: $GRAFANA_COMMIT"
|
echo "GRAFANA_COMMIT: $GRAFANA_COMMIT"
|
||||||
echo "github.ref: $GITHUB_REF"
|
echo "github.ref: $GITHUB_REF"
|
||||||
|
@ -66,15 +67,15 @@ jobs:
|
||||||
# not in the last 100 commits.
|
# not in the last 100 commits.
|
||||||
- name: Verify commit is in workflow HEAD
|
- name: Verify commit is in workflow HEAD
|
||||||
env:
|
env:
|
||||||
GIT_COMMIT: ${{ github.event.inputs.grafana_commit }}
|
GIT_COMMIT: ${{ inputs.grafana_commit }}
|
||||||
run: ./.github/workflows/scripts/validate-commit-in-head.sh
|
run: ./.github/workflows/scripts/validate-commit-in-head.sh
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Map version type to NPM tag
|
- name: Map version type to NPM tag
|
||||||
id: npm-tag
|
id: npm-tag
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ github.event.inputs.version }}
|
VERSION: ${{ inputs.version }}
|
||||||
VERSION_TYPE: ${{ github.event.inputs.version_type }}
|
VERSION_TYPE: ${{ inputs.version_type }}
|
||||||
REFERENCE_PKG: "@grafana/runtime"
|
REFERENCE_PKG: "@grafana/runtime"
|
||||||
run: |
|
run: |
|
||||||
TAG=$(./.github/workflows/scripts/determine-npm-tag.sh)
|
TAG=$(./.github/workflows/scripts/determine-npm-tag.sh)
|
||||||
|
@ -85,7 +86,7 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
ref: ${{ github.event.inputs.grafana_commit }}
|
ref: ${{ inputs.grafana_commit }}
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: ./.github/actions/setup-node
|
uses: ./.github/actions/setup-node
|
||||||
|
@ -102,7 +103,7 @@ jobs:
|
||||||
|
|
||||||
- name: Version, build, and pack packages
|
- name: Version, build, and pack packages
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ github.event.inputs.version }}
|
VERSION: ${{ inputs.version }}
|
||||||
run: |
|
run: |
|
||||||
yarn run packages:build
|
yarn run packages:build
|
||||||
yarn lerna version "$VERSION" \
|
yarn lerna version "$VERSION" \
|
||||||
|
|
Loading…
Reference in New Issue