Skip to content

Commit 8d7dc4c

Browse files
committed
Add new job step which writes latest helm chart version to JSON file.
1 parent 8c1f487 commit 8d7dc4c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ jobs:
4646
with:
4747
charts_dir: charts
4848

49+
- name: Write latest stable version to info.json file
50+
run: |
51+
# We write latest stable version info to JSON file which we can query for displaying
52+
# badge in the readme
53+
CHART_VERSION=$(cat charts/scalyr-agent/Chart.yaml | grep "version: " | sed "s/version: //g" | tr -d "\n")
54+
echo '{"scalyrAgent": "v'${CHART_VERSION}'"}' > info.json
55+
git add info.json
56+
git push origin gh-pages
57+
4958
- name: Notify Slack on Failure
5059
# NOTE: github.ref is set to pr ref (and not branch name, e.g. refs/pull/28/merge) for pull
5160
# requests and that's why we need this special conditional and check for github.head_ref in

0 commit comments

Comments
 (0)