diff --git a/.github/workflows/on_pull_request.yaml b/.github/workflows/on_pull_request.yaml new file mode 100644 index 0000000..54d0180 --- /dev/null +++ b/.github/workflows/on_pull_request.yaml @@ -0,0 +1,13 @@ +name: On Pull Request + +on: + pull_request: + +jobs: + + on-pull-request: + name: Get ROCKs modified and build-scan-test them + uses: canonical/charmed-kubeflow-workflows/.github/workflows/get-rocks-modified-and-build-scan-test-publish.yaml@main + permissions: + pull-requests: read + secrets: inherit diff --git a/.github/workflows/on_push.yaml b/.github/workflows/on_push.yaml new file mode 100644 index 0000000..9704e46 --- /dev/null +++ b/.github/workflows/on_push.yaml @@ -0,0 +1,16 @@ +name: On Push + +on: + push: + branches: + - main + - track/** + +jobs: + + on-push: + name: Get ROCKs modified and build-scan-test-publish them + uses: canonical/charmed-kubeflow-workflows/.github/workflows/get-rocks-modified-and-build-scan-test-publish.yaml@main + permissions: + pull-requests: read + secrets: inherit