File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : Release Charts
2
2
3
3
on :
4
+ workflow_dispatch :
4
5
push :
5
6
branches :
6
7
- main
20
21
- name : Validate Chart.yaml Update
21
22
id : check_update_chart
22
23
run : |
23
- VERSION_DIFF =$(git diff HEAD^ -- "*Chart.yaml" | grep -E "^\+version:" || echo "" )
24
- echo "VERSION_DIFF=$VERSION_DIFF" # example value: + version: 0.80.1
25
- if [[ ! -z "$VERSION_DIFF" ] ]; then
24
+ LATEST_VERSION =$(curl -s https://api.github.com/repos/signalfx/splunk-otel-collector-chart/releases/latest | grep tag_name | cut -d - -f 4 | cut -d \" -f 1 )
25
+ CURRENT_VERSION=$(cat helm-charts/splunk-otel-collector/Chart.yaml | grep -E "^ version:" | cut -d " " -f 2)
26
+ if [ "$LATEST_VERSION" != "$CURRENT_VERSION" ]; then
26
27
echo "New release needed, creating..."
27
28
echo "VALID_UPDATE=1" >> $GITHUB_OUTPUT
28
29
else
You can’t perform that action at this time.
0 commit comments