Skip to content

Commit 6cca257

Browse files
chore(deps): bump mikefarah/yq from 4.52.4 to 4.52.5 in the utilities group (#180)
* chore(deps): bump mikefarah/yq in the utilities group Bumps the utilities group with 1 update: [mikefarah/yq](https://github.com/mikefarah/yq). Updates `mikefarah/yq` from 4.52.4 to 4.52.5 - [Release notes](https://github.com/mikefarah/yq/releases) - [Changelog](https://github.com/mikefarah/yq/blob/master/release_notes.txt) - [Commits](mikefarah/yq@5a7e72a...0f4fb8d) --- updated-dependencies: - dependency-name: mikefarah/yq dependency-version: 4.52.5 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: utilities ... Signed-off-by: dependabot[bot] <support@github.com> * fix(ci): pin actions by SHA and resolve shellcheck warnings in helm-update-chart --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lucas Bedatty <lucas.bedatty@lerian.studio>
1 parent 81bbc20 commit 6cca257

1 file changed

Lines changed: 24 additions & 23 deletions

File tree

.github/workflows/helm-update-chart.yml

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
steps:
101101
- name: Generate GitHub App Token
102102
id: app-token
103-
uses: actions/create-github-app-token@v2
103+
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
104104
with:
105105
app-id: ${{ secrets.APP_ID }}
106106
private-key: ${{ secrets.APP_PRIVATE_KEY }}
@@ -153,7 +153,7 @@ jobs:
153153
# triggered by internal dispatch, not a PR event. The ref is a controlled
154154
# branch name (develop/main), not an untrusted PR head.
155155
- name: Checkout
156-
uses: actions/checkout@v6
156+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
157157
with:
158158
token: ${{ steps.app-token.outputs.token }}
159159
ref: ${{ inputs.base_branch }}
@@ -186,20 +186,20 @@ jobs:
186186
187187
- name: Setup Go
188188
if: ${{ inputs.update_readme }}
189-
uses: actions/setup-go@v6
189+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
190190
with:
191191
go-version: '1.21'
192192
cache-dependency-path: ${{ inputs.scripts_path }}/go.mod
193193

194194
- name: Build scripts
195195
if: ${{ inputs.update_readme }}
196196
run: |
197-
cd ${{ inputs.scripts_path }}
197+
cd ${{ inputs.scripts_path }} || exit 1
198198
go build -o update-readme-matrix update-readme-matrix.go
199199
go build -o update-chart-version-readme update-chart-version-readme.go
200200
201201
- name: Setup yq
202-
uses: mikefarah/yq@5a7e72a743649b1b3a47d1a1d8214f3453173c51 # v4
202+
uses: mikefarah/yq@0f4fb8d35ec1a939d78dd6862f494d19ec589f19 # v4
203203

204204
- name: Process all components
205205
id: process
@@ -418,7 +418,6 @@ jobs:
418418
CHART="${{ steps.payload.outputs.chart }}"
419419
BRANCH_NAME="${{ steps.payload.outputs.branch_name }}"
420420
BASE_BRANCH="${{ inputs.base_branch }}"
421-
COMMIT_MSG="${{ steps.commit.outputs.commit_msg }}"
422421
HAS_NEW_ENV_VARS="${{ steps.payload.outputs.has_new_env_vars }}"
423422
UPDATED_COMPONENTS="${{ steps.process.outputs.updated_components }}"
424423
@@ -481,26 +480,28 @@ jobs:
481480
BRANCH_NAME="${{ steps.payload.outputs.branch_name }}"
482481
HAS_CHANGES="${{ steps.commit.outputs.has_changes }}"
483482
484-
echo "### Helm Chart Update Summary" >> "$GITHUB_STEP_SUMMARY"
485-
echo "" >> "$GITHUB_STEP_SUMMARY"
486-
echo "**Chart:** \`${CHART}\`" >> "$GITHUB_STEP_SUMMARY"
487-
echo "**Branch:** \`${BRANCH_NAME}\`" >> "$GITHUB_STEP_SUMMARY"
488-
echo "**Base:** \`${BASE_BRANCH}\`" >> "$GITHUB_STEP_SUMMARY"
489-
echo "" >> "$GITHUB_STEP_SUMMARY"
483+
{
484+
echo "### Helm Chart Update Summary"
485+
echo ""
486+
echo "**Chart:** \`${CHART}\`"
487+
echo "**Branch:** \`${BRANCH_NAME}\`"
488+
echo "**Base:** \`${BASE_BRANCH}\`"
489+
echo ""
490490
491-
if [ "${HAS_CHANGES}" = "true" ]; then
492-
echo "✅ **PR created successfully**" >> "$GITHUB_STEP_SUMMARY"
493-
else
494-
echo "ℹ️ **No changes detected**" >> "$GITHUB_STEP_SUMMARY"
495-
fi
491+
if [ "${HAS_CHANGES}" = "true" ]; then
492+
echo "✅ **PR created successfully**"
493+
else
494+
echo "ℹ️ **No changes detected**"
495+
fi
496496
497-
echo "" >> "$GITHUB_STEP_SUMMARY"
498-
echo "**Components:**" >> "$GITHUB_STEP_SUMMARY"
499-
echo "" >> "$GITHUB_STEP_SUMMARY"
500-
echo "| Component | Version | New Env Vars |" >> "$GITHUB_STEP_SUMMARY"
501-
echo "|-----------|---------|--------------|" >> "$GITHUB_STEP_SUMMARY"
497+
echo ""
498+
echo "**Components:**"
499+
echo ""
500+
echo "| Component | Version | New Env Vars |"
501+
echo "|-----------|---------|--------------|"
502502
503-
echo "$COMPONENTS" | jq -r '.[] | "| \(.name) | \(.version) | \(.env_vars | if . == {} then "-" else (. | keys | join(", ")) end) |"' >> "$GITHUB_STEP_SUMMARY"
503+
echo "$COMPONENTS" | jq -r '.[] | "| \(.name) | \(.version) | \(.env_vars | if . == {} then "-" else (. | keys | join(", ")) end) |"'
504+
} >> "$GITHUB_STEP_SUMMARY"
504505
505506
- name: Send Slack notification
506507
if: ${{ inputs.slack_notification && steps.commit.outputs.has_changes == 'true' }}

0 commit comments

Comments
 (0)