Skip to content

Commit

Permalink
fix: update workflows to have changed-cluster where applicable
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Buhl <[email protected]>
  • Loading branch information
onedr0p committed Jan 13, 2024
1 parent 840570b commit a29339f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/flux-diff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ concurrency:
cancel-in-progress: true

jobs:
changed-files:
name: Changed Files
changed-clusters:
name: Changed Clusters
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.changed-files.outputs.all_changed_and_modified_files }}
matrix: ${{ steps.changed-clusters.outputs.all_changed_and_modified_files }}
steps:
- name: Generate Token
uses: actions/create-github-app-token@v1
Expand All @@ -31,8 +31,8 @@ jobs:
token: "${{ steps.app-token.outputs.token }}"
fetch-depth: 0

- name: Get Changed Files
id: changed-files
- name: Get Changed Clusters
id: changed-clusters
uses: tj-actions/changed-files@v41
with:
files: kubernetes/**
Expand All @@ -41,18 +41,18 @@ jobs:
json: true
escape_json: false

- name: List All Changed Files
run: echo "${{ steps.changed-files.outputs.all_changed_and_modified_files }}"
- name: List All Changed Clusters
run: echo "${{ steps.changed-clusters.outputs.all_changed_and_modified_files }}"

flux-diff:
name: Flux Diff
runs-on: ubuntu-latest
needs: ["changed-files"]
needs: ["changed-clusters"]
permissions:
pull-requests: write
strategy:
matrix:
paths: ${{ fromJSON(needs.changed-files.outputs.matrix) }}
paths: ${{ fromJSON(needs.changed-clusters.outputs.matrix) }}
resources: ["helmrelease", "kustomization"]
max-parallel: 4
fail-fast: false
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/flux-image-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ concurrency:
cancel-in-progress: true

jobs:
changed-files:
name: Changed Files
changed-clusters:
name: Changed Clusters
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.changed-files.outputs.all_changed_and_modified_files }}
matrix: ${{ steps.changed-clusters.outputs.all_changed_and_modified_files }}
steps:
- name: Generate Token
uses: actions/create-github-app-token@v1
Expand All @@ -31,8 +31,8 @@ jobs:
token: "${{ steps.app-token.outputs.token }}"
fetch-depth: 0

- name: Get Changed Files
id: changed-files
- name: Get Changed Clusters
id: changed-clusters
uses: tj-actions/changed-files@v41
with:
files: kubernetes/**
Expand All @@ -41,18 +41,18 @@ jobs:
json: true
escape_json: false

- name: List All Changed Files
run: echo "${{ steps.changed-files.outputs.all_changed_and_modified_files }}"
- name: List All Changed Clusters
run: echo "${{ steps.changed-clusters.outputs.all_changed_and_modified_files }}"

extract-images:
name: Extract Images
runs-on: ubuntu-latest
needs: ["changed-files"]
needs: ["changed-clusters"]
permissions:
pull-requests: write
strategy:
matrix:
paths: ${{ fromJSON(needs.changed-files.outputs.matrix) }}
paths: ${{ fromJSON(needs.changed-clusters.outputs.matrix) }}
max-parallel: 4
fail-fast: false
outputs:
Expand Down

0 comments on commit a29339f

Please sign in to comment.