chore(ckan): update solar and ckan container #7429
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: Add comment with diff for PR | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
pull_request_target: | |
paths: | |
- charts/** | |
branches-ignore: | |
- release-please--branches--main--components-** | |
jobs: | |
getChangedChart: | |
uses: ./.github/workflows/get-changed-chart.yaml | |
with: | |
pr_number: ${{ github.event.pull_request.number }} | |
generateDiffCommentBody: | |
runs-on: ubuntu-latest | |
needs: getChangedChart | |
permissions: | |
contents: read | |
pull-requests: read | |
env: | |
CT_TARGET_BRANCH: ${{ github.event.pull_request.base.ref || github.event.repository.default_branch }} | |
GITHUB_TOKEN: ${{ secrets.ACTIONS_BOT_TOKEN }} | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- run: pip install yq | |
- name: Install sponge | |
run: sudo apt-get -yq install moreutils | |
- run: ./.github/scripts/prepare-values.sh "charts/${{ needs.getChangedChart.outputs.chart }}" | |
- run: ./.github/scripts/create-values-diff.sh ${{ github.event.number }} "charts/${{ needs.getChangedChart.outputs.chart }}" --dry-run > comment_body.md | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: comment_body | |
path: comment_body.md | |
if-no-files-found: error | |
retention-days: 1 | |
postDiffComment: | |
runs-on: ubuntu-latest | |
needs: | |
- getChangedChart | |
- generateDiffCommentBody | |
env: | |
GITHUB_TOKEN: ${{ secrets.ACTIONS_BOT_TOKEN }} | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
name: comment_body | |
- run: ./.github/scripts/create-values-diff.sh ${{ github.event.number }} "charts/${{ needs.getChangedChart.outputs.chart }}" --body comment_body.md |