Skip to content

Commit

Permalink
fix: scan on pull_request instead of push
Browse files Browse the repository at this point in the history
  • Loading branch information
gruyaume committed Apr 26, 2024
1 parent b25afb3 commit 71435d6
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 71435d6

Please sign in to comment.