mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Ephemeral instances: fetch the grafana version from the package.json file (#88300)
This commit is contained in:
parent
8418aca823
commit
07debd66c2
@ -57,11 +57,18 @@ jobs:
|
|||||||
ref: main
|
ref: main
|
||||||
path: ephemeral
|
path: ephemeral
|
||||||
|
|
||||||
|
- name: Get latest grafana version number
|
||||||
|
run: |
|
||||||
|
# if package.json contains e.g. 11.0.0-pre, this writes 11.0.0 to version.txt
|
||||||
|
curl https://raw.githubusercontent.com/grafana/grafana/main/package.json | jq -r .version | grep -o '^[0-9\.]*' > version.txt
|
||||||
|
|
||||||
- name: Run action
|
- name: Run action
|
||||||
env:
|
env:
|
||||||
GITHUB_EVENT: ${{ toJson(github.event)}}
|
GITHUB_EVENT: ${{ toJson(github.event)}}
|
||||||
run: |
|
run: |
|
||||||
GRAFANA_VERSION=10.1.0
|
# Create a prerelease version number using the latest version from the package.json in the grafana repo.
|
||||||
|
export GRAFANA_VERSION="$(cat version.txt)"
|
||||||
|
echo "${GRAFANA_VERSION}"
|
||||||
|
|
||||||
cd $GITHUB_WORKSPACE/ephemeral/src
|
cd $GITHUB_WORKSPACE/ephemeral/src
|
||||||
go run . \
|
go run . \
|
||||||
|
@ -49,11 +49,18 @@ jobs:
|
|||||||
ref: main
|
ref: main
|
||||||
path: ephemeral
|
path: ephemeral
|
||||||
|
|
||||||
|
- name: Get latest grafana version number
|
||||||
|
run: |
|
||||||
|
# if package.json contains e.g. 11.0.0-pre, this writes 11.0.0 to version.txt
|
||||||
|
curl https://raw.githubusercontent.com/grafana/grafana/main/package.json | jq -r .version | grep -o '^[0-9\.]*' > version.txt
|
||||||
|
|
||||||
- name: Run action
|
- name: Run action
|
||||||
env:
|
env:
|
||||||
GITHUB_EVENT: ${{ toJson(github.event)}}
|
GITHUB_EVENT: ${{ toJson(github.event)}}
|
||||||
run: |
|
run: |
|
||||||
GRAFANA_VERSION=10.1.0
|
# Create a prerelease version number using the latest version from the package.json in the grafana repo.
|
||||||
|
export GRAFANA_VERSION="$(cat version.txt)"
|
||||||
|
echo "${GRAFANA_VERSION}"
|
||||||
|
|
||||||
cd $GITHUB_WORKSPACE/ephemeral/src
|
cd $GITHUB_WORKSPACE/ephemeral/src
|
||||||
go run . \
|
go run . \
|
||||||
|
Loading…
Reference in New Issue
Block a user