Refine workflow push trigger

We run validation workflows on push, but we do this for every branch, so dependabot PRs run every validation twice. We only really want push validation for the main branch.
This commit is contained in:
Nick Gerleman
2022-12-05 11:06:15 -08:00
parent 707115ee7e
commit 6f97749ce4
4 changed files with 24 additions and 4 deletions

View File

@@ -1,6 +1,11 @@
name: Android
on: [push, pull_request, workflow_dispatch]
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
jobs:
build: