fix(deps): update k3s-io/k3s ( v1.35.1+k3s1 → v1.35.3+k3s1 ) #5052
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: Helm Release Differ | |
| on: # yamllint disable-line rule:truthy | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - "**.yaml" | |
| env: | |
| conf_live_branch: main | |
| conf_ignore_known_labels_containing_versions: true | |
| jobs: | |
| detect-file-changes: | |
| name: Detect File Changes | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Filter Helm Applications | |
| uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4 | |
| id: filter | |
| with: | |
| list-files: json | |
| filters: | | |
| changed: | |
| - '**/Chart.yaml' | |
| - '**/values.yaml' | |
| - name: Extract yaml Files | |
| id: extract | |
| run: | | |
| filtered=$( echo '${{ steps.filter.outputs.changed_files }}' \ | |
| | jq -r '.=[.[] | split("/") | del(.[-1]) | join("/") ] | unique') | |
| echo ${filtered} | |
| echo "files<<EOF" >> "${GITHUB_OUTPUT}" | |
| echo "${filtered}" >> "${GITHUB_OUTPUT}" | |
| echo "EOF" >> "${GITHUB_OUTPUT}" | |
| outputs: | |
| yaml_files: ${{ steps.extract.outputs.files }} | |
| helm-release-differ: | |
| name: Helm Release Differ | |
| runs-on: ubuntu-latest | |
| if: ${{ needs.detect-file-changes.outputs.yaml_files != '' && needs.detect-file-changes.outputs.yaml_files != '[]' }} | |
| needs: detect-file-changes | |
| strategy: | |
| matrix: | |
| file: ${{ fromJSON(needs.detect-file-changes.outputs.yaml_files) }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Checkout default branch | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| ref: "${{ env.conf_live_branch }}" | |
| path: live | |
| - name: Setup Homebrew | |
| uses: Homebrew/actions/setup-homebrew@master | |
| - name: Setup Tools | |
| run: | | |
| brew install helm kustomize yq | |
| - name: Helm Release Differ | |
| id: diff | |
| run: | | |
| # pin to 8.1.3 due to https://github.com/google/zx/issues/870 | |
| npm install zx@8.1.3 | |
| diff=$(npx zx@8.1.3 ./.github/scripts/helmReleaseDiff.mjs \ | |
| --source-chart "live/${{ matrix.file }}" \ | |
| --target-chart "${{ matrix.file }}" \ | |
| --diff-tool "diff") | |
| echo "diff<<EOF" >> "${GITHUB_OUTPUT}" | |
| echo "${diff}" >> "${GITHUB_OUTPUT}" | |
| echo "EOF" >> "${GITHUB_OUTPUT}" | |
| - name: Find Comment | |
| uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad # v4 | |
| id: find-comment | |
| with: | |
| issue-number: "${{ github.event.pull_request.number }}" | |
| body-includes: "${{ matrix.file }}" | |
| - name: Create or update comment | |
| uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5 | |
| with: | |
| comment-id: "${{ steps.find-comment.outputs.comment-id }}" | |
| issue-number: "${{ github.event.pull_request.number }}" | |
| body: "${{ steps.diff.outputs.diff }}" | |
| edit-mode: replace | |
| - name: Auto Merge PR if no changes | |
| if: ${{ contains(steps.diff.outputs.diff, 'No changes in detected in resources') }} | |
| uses: peter-evans/enable-pull-request-automerge@v3 | |
| with: | |
| pull-request-number: ${{ github.event.pull_request.number }} | |
| merge-method: squash |