From 71435d6ab649b7295ed3886c90d55aa05c5e5262 Mon Sep 17 00:00:00 2001 From: Guillaume Belanger Date: Fri, 26 Apr 2024 19:01:40 -0400 Subject: [PATCH] fix: scan on pull_request instead of push --- .github/workflows/main.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/main.yaml diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..83f34e6 --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,25 @@ +name: Main + +on: + pull_request: + branches: + - main + push: + branches: + - main + schedule: + - cron: '0 0 * * 0' + +jobs: + + build-rock: + uses: canonical/sdcore-github-workflows/.github/workflows/build-rock.yaml@v0.0.1 + + scan-rock: + needs: build-rock + uses: canonical/sdcore-github-workflows/.github/workflows/scan-rock.yaml@v0.0.1 + + publish-rock: + if: github.ref_name == 'main' + needs: scan-rock + uses: canonical/sdcore-github-workflows/.github/workflows/publish-rock.yaml@v0.0.1