-
Notifications
You must be signed in to change notification settings - Fork 434
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa2d5ad
commit 74cfe2e
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Compatibility Matrix | ||
|
||
on: | ||
release: | ||
types: [created] | ||
pull_request: | ||
types: [opened, synchronize, reopened, edited] | ||
branches: | ||
- main | ||
paths: | ||
- "**.go" | ||
- "!**_test.go" # exclude test files to ignore unit test changes | ||
- "test/**" # include test files in e2e again | ||
- "!**.md" | ||
- "Dockerfile.release" | ||
- ".github/workflows/e2e.yaml" | ||
- "charts/**" | ||
- "manifests/**" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
check-if-matrix-is-up-to-date: | ||
- name: Checkout PR | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: gh pr checkout ${{ github.event.pull_request.number }} | ||
- name: run matrix-gen | ||
run: go run hack/compat-matrix/main.go | ||
- name: commit change if needed | ||
run: git diff --quiet && git diff --staged --quiet || git commit -am 'updated compatibility matrix' | ||
- name: Push changes | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TO:KEN }} | ||
run: git push | ||
|