build(deps): update image ghcr.io/external-secrets/charts/external-secrets ( 2.6.0 ➜ 2.7.0 ) #2650
Workflow file for this run
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
| --- | |
| # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
| name: Flux Local | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| filter: | |
| name: Flux Local - Filter | |
| runs-on: ubuntu-latest | |
| outputs: | |
| changed-files: ${{ steps.changed-files.outputs.changed_files }} | |
| steps: | |
| - name: Get Changed Files | |
| id: changed-files | |
| uses: bjw-s-labs/action-changed-files@a9a36fb08ce06db9b02fbd8026cc2c0945eb9841 # v0.6.0 | |
| with: | |
| patterns: kubernetes/**/* | |
| test: | |
| if: ${{ needs.filter.outputs.changed-files != '[]' }} | |
| needs: filter | |
| name: Flux Local - Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| persist-credentials: false | |
| - name: Run flux-local test | |
| uses: docker://ghcr.io/allenporter/flux-local:v8.3.0 | |
| with: | |
| args: >- | |
| test --all-namespaces --enable-helm --path /github/workspace/kubernetes/flux/cluster | |
| --sources flux-system --verbose | |
| diff: | |
| if: ${{ needs.filter.outputs.changed-files != '[]' }} | |
| needs: filter | |
| name: Flux Local - Diff | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| strategy: | |
| matrix: | |
| resource: | |
| - helmrelease | |
| - kustomization | |
| fail-fast: false | |
| steps: | |
| - name: Checkout Pull Request Branch | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| path: pull | |
| persist-credentials: false | |
| - name: Checkout Default Branch | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| path: default | |
| persist-credentials: false | |
| ref: ${{ github.event.repository.default_branch }} | |
| - name: Run flux-local diff | |
| uses: docker://ghcr.io/allenporter/flux-local:v8.3.0 | |
| with: | |
| args: >- | |
| diff ${{ matrix.resource }} --unified 6 --path | |
| /github/workspace/pull/kubernetes/flux/cluster --path-orig | |
| /github/workspace/default/kubernetes/flux/cluster --strip-attrs | |
| "helm.sh/chart,checksum/config,app.kubernetes.io/version,chart" --limit-bytes 10000 | |
| --all-namespaces --sources "flux-system" --output-file diff.patch | |
| - name: Generate Diff | |
| id: diff | |
| run: |- | |
| echo 'diff<<EOF' >> $GITHUB_OUTPUT | |
| cat diff.patch >> $GITHUB_OUTPUT | |
| echo 'EOF' >> $GITHUB_OUTPUT | |
| - if: ${{ steps.diff.outputs.diff != '' }} | |
| name: Add Comment | |
| uses: marocchino/sticky-pull-request-comment@0ea0beb66eb9baf113663a64ec522f60e49231c0 # v3.0.4 | |
| with: | |
| header: ${{ github.event.pull_request.number }}/kubernetes/${{ matrix.resource }} | |
| message: |- | |
| ```diff | |
| ${{ steps.diff.outputs.diff }} | |
| ``` | |
| success: | |
| if: ${{ !cancelled() }} | |
| needs: | |
| - test | |
| - diff | |
| name: Flux Local - Success | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Any jobs failed? | |
| if: ${{ contains(needs.*.result, 'failure') }} | |
| run: exit 1 | |
| - name: All jobs passed or skipped? | |
| if: ${{ !(contains(needs.*.result, 'failure')) }} | |
| run: echo "All jobs passed or skipped" && echo "${{ toJSON(needs.*.result) }}" |