Skip to content

Commit 1103b1d

Browse files
committed
update
Signed-off-by: Noah Burrell <noah@burrell.tech>
1 parent 7875b21 commit 1103b1d

File tree

2 files changed

+7
-23
lines changed

2 files changed

+7
-23
lines changed

.github/workflows/bump-helm-charts.yaml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,10 @@ on:
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

2520
jobs:
2621
bump-chart:
@@ -54,9 +49,8 @@ jobs:
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
@@ -99,11 +93,9 @@ jobs:
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

hack/bump-chart-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ else
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"

0 commit comments

Comments
 (0)