Skip to content

Commit

Permalink
modified workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
facchettos committed Feb 9, 2024
1 parent d990bdd commit 4593b89
Showing 1 changed file with 16 additions and 20 deletions.
36 changes: 16 additions & 20 deletions .github/workflows/matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,27 @@ on:
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/**"
- "vendor/**"

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 docs/pages/deploying-vclusters/compat-matrix
- 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
name: Execute all helm tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: regenerate the table
run: |
go run hack/compat-matrix/main.go docs/pages/deploying-vclusters/compat-matrix
- 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

0 comments on commit 4593b89

Please sign in to comment.