fix(container): update image ghcr.io/home-assistant/home-assistant to v2024.5.2 #1360
This file contains 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: | |
- "cluster/**.yaml" | |
env: | |
# Currently no way to detect automatically | |
DEFAULT_BRANCH: main | |
BOT_USERNAME: "pepinillo-bot[bot]" | |
jobs: | |
detect-file-changes: | |
name: Detect File Changes | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4 | |
- name: Filter Helm Releases | |
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3 | |
id: filter | |
with: | |
list-files: json | |
filters: | | |
yaml: | |
- added|modified: "**/helm-release.yaml" | |
outputs: | |
yaml_files: ${{ steps.filter.outputs.yaml_files }} | |
helm-release-differ: | |
name: Helm Release Differ | |
runs-on: ubuntu-latest | |
needs: detect-file-changes | |
strategy: | |
matrix: | |
file: ${{ fromJSON(needs.detect-file-changes.outputs.yaml_files) }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4 | |
- name: Generate Token | |
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2 | |
id: generate-token | |
with: | |
app_id: ${{ secrets.BOT_APP_ID }} | |
private_key: ${{ secrets.BOT_APP_PRIVATE_KEY }} | |
- name: Checkout default branch | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4 | |
with: | |
ref: "${{ env.DEFAULT_BRANCH }}" | |
path: default | |
- name: Install Helm | |
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4 | |
with: | |
version: latest | |
- name: Helm Release Differ | |
id: diff | |
run: | | |
diff=$(.github/scripts/helm-release-differ.sh --source-file "default/${{ matrix.file }}" --target-file "${{ matrix.file }}" --remove-common-labels) | |
echo "${diff}" | |
diff="${diff//'%'/'%25'}" | |
diff="${diff//$'\n'/'%0A'}" | |
diff="${diff//$'\r'/'%0D'}" | |
echo "::set-output name=diff::$(echo ${diff})" | |
- name: Find Comment | |
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e # v3 | |
id: find-comment | |
with: | |
issue-number: "${{ github.event.pull_request.number }}" | |
comment-author: "${{ env.BOT_USERNAME }}" | |
body-includes: "${{ matrix.file }}" | |
- name: Create or update comment | |
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4 | |
with: | |
token: "${{ steps.generate-token.outputs.token }}" | |
comment-id: "${{ steps.find-comment.outputs.comment-id }}" | |
issue-number: "${{ github.event.pull_request.number }}" | |
body: "${{ steps.diff.outputs.diff }}" | |
edit-mode: replace |