File tree Expand file tree Collapse file tree 2 files changed +7
-23
lines changed
Expand file tree Collapse file tree 2 files changed +7
-23
lines changed Original file line number Diff line number Diff line change 1212 required : false
1313 type : string
1414 dry_run :
15- description : ' Run in dry-run mode (show changes without applying)'
15+ description : ' Run in dry-run mode (show changes without applying, when false charts will be downloaded and PR created )'
1616 required : false
1717 type : boolean
1818 default : true
19- download :
20- description : ' Automatically download charts after version update'
21- required : false
22- type : boolean
23- default : false
2419
2520jobs :
2621 bump-chart :
5449
5550 if [ "${{ inputs.dry_run }}" = "true" ]; then
5651 CMD="$CMD --dry-run"
57- fi
58-
59- if [ "${{ inputs.download }}" = "true" ]; then
52+ else
53+ # Enable download when not in dry-run mode
6054 CMD="$CMD --download"
6155 fi
6256
9993 git add ${{ inputs.config_path }}
10094
10195 # Add downloaded charts if they exist
102- if [ "${{ inputs.download }}" = "true" ]; then
103- CHARTS_DIR=$(dirname ${{ inputs.config_path }})/charts
104- if [ -d "$CHARTS_DIR" ]; then
105- git add "$CHARTS_DIR"
106- fi
96+ CHARTS_DIR=$(dirname ${{ inputs.config_path }})/charts
97+ if [ -d "$CHARTS_DIR" ]; then
98+ git add "$CHARTS_DIR"
10799 fi
108100
109101 # Commit changes
@@ -136,11 +128,3 @@ jobs:
136128 fi
137129 env :
138130 GH_TOKEN : ${{ github.token }}
139-
140- - name : Upload charts artifact
141- if : ${{ inputs.download == true }}
142- uses : actions/upload-artifact@v4
143- with :
144- name : helm-charts
145- path : $(dirname ${{ inputs.config_path }})/charts/
146- if-no-files-found : ignore
Original file line number Diff line number Diff line change 499499 echo " "
500500 echo " --- Current"
501501 echo " +++ Proposed"
502- diff -u " $CONFIG_FILE_ABS " <( echo " $updated_content " ) || true
502+ ( diff -u " $CONFIG_FILE_ABS " <( echo " $updated_content " ) || true)
503503 else
504504 info " Updating $CONFIG_FILE_ABS ..."
505505 echo " $updated_content " > " $CONFIG_FILE_ABS "
You can’t perform that action at this time.
0 commit comments