feat(container): update gha-runner-scale-set ( 0.7.0 → 0.8.0 ) #1645
Workflow file for this run
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
--- | |
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: "Flux Diff" | |
on: | |
pull_request: | |
branches: ["main"] | |
paths: ["kubernetes/**"] | |
env: | |
AQUA_GLOBAL_CONFIG: .github/aqua.yaml | |
jobs: | |
flux-diff: | |
name: Flux Diff | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
strategy: | |
matrix: | |
path: ["kubernetes/main", "kubernetes/storage"] | |
resource: ["helmrelease", "kustomization"] | |
steps: | |
- name: Generate Token | |
uses: actions/create-github-app-token@2986852ad836768dfea7781f31828eb3e17990fa # v1.6.2 | |
id: app-token | |
with: | |
app-id: "${{ secrets.BOT_APP_ID }}" | |
private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}" | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
token: "${{ steps.app-token.outputs.token }}" | |
- name: Install System Tools | |
shell: bash | |
run: sudo apt-get -qq update && sudo apt-get -qq install --no-install-recommends -y curl git jo | |
- name: Cache Aqua | |
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 | |
with: | |
path: ~/.local/share/aquaproj-aqua | |
key: aqua-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/aqua.yaml') }} | |
restore-keys: aqua-${{ runner.os }}-${{ runner.arch }}- | |
- name: Install Aqua and CLI Tools | |
uses: aquaproj/aqua-installer@928a2ee4243a9ee8312d80dc8cbaca88fb602a91 # v2.2.0 | |
with: | |
aqua_version: v2.21.3 | |
aqua_opts: -a | |
env: | |
GITHUB_TOKEN: "${{ steps.app-token.outputs.token }}" | |
- name: Diff Resources | |
uses: allenporter/flux-local/action/diff@e3e84e4fcdab2191de8e65acfe62b7aedd933be4 # 4.0.0 | |
id: diff | |
with: | |
sources: home-kubernetes | |
path: "${{ matrix.path }}" | |
resource: "${{ matrix.resource }}" | |
- if: ${{ steps.diff.outputs.diff != '' }} | |
name: Add comment | |
uses: mshick/add-pr-comment@7c0890544fb33b0bdd2e59467fbacb62e028a096 # v2.8.1 | |
with: | |
repo-token: "${{ steps.app-token.outputs.token }}" | |
message-id: "${{ github.event.pull_request.number }}/${{ matrix.path }}/${{ matrix.resource }}" | |
message-failure: Diff was not successful | |
message: | | |
```diff | |
${{ steps.diff.outputs.diff }} | |
``` |