diff --git a/.github/workflows/build-debug.main.kts b/.github/workflows/build-debug.main.kts index 16bdc7a4..396d429b 100755 --- a/.github/workflows/build-debug.main.kts +++ b/.github/workflows/build-debug.main.kts @@ -19,7 +19,7 @@ import io.github.typesafegithub.workflows.dsl.workflow workflow( name = "Build Universal Debug APK", - on = listOf(Push(), PullRequest()), + on = listOf(Push(branches = listOf("main")), PullRequest()), sourceFile = __FILE__ ) { job(id = "build", runsOn = RunnerType.UbuntuLatest) { diff --git a/.github/workflows/build-debug.yaml b/.github/workflows/build-debug.yaml index ac04917e..255b941f 100644 --- a/.github/workflows/build-debug.yaml +++ b/.github/workflows/build-debug.yaml @@ -4,7 +4,9 @@ name: 'Build Universal Debug APK' on: - push: {} + push: + branches: + - 'main' pull_request: {} jobs: check_yaml_consistency: diff --git a/.github/workflows/dependency-license-analysis.main.kts b/.github/workflows/dependency-license-analysis.main.kts index ea43dc14..d5adb230 100755 --- a/.github/workflows/dependency-license-analysis.main.kts +++ b/.github/workflows/dependency-license-analysis.main.kts @@ -18,7 +18,7 @@ import io.github.typesafegithub.workflows.dsl.workflow workflow( name = "Dependency License Analysis", - on = listOf(Push(), PullRequest()), + on = listOf(Push(branches = listOf("main")), PullRequest()), sourceFile = __FILE__ ) { job(id = "analyse", runsOn = RunnerType.UbuntuLatest) { diff --git a/.github/workflows/dependency-license-analysis.yaml b/.github/workflows/dependency-license-analysis.yaml index b038a586..a039f390 100644 --- a/.github/workflows/dependency-license-analysis.yaml +++ b/.github/workflows/dependency-license-analysis.yaml @@ -4,7 +4,9 @@ name: 'Dependency License Analysis' on: - push: {} + push: + branches: + - 'main' pull_request: {} jobs: check_yaml_consistency: diff --git a/.github/workflows/lint.main.kts b/.github/workflows/lint.main.kts index 7760f4e6..ce946354 100755 --- a/.github/workflows/lint.main.kts +++ b/.github/workflows/lint.main.kts @@ -18,7 +18,7 @@ import io.github.typesafegithub.workflows.dsl.workflow workflow( name = "Lint", - on = listOf(Push(), PullRequest()), + on = listOf(Push(branches = listOf("main")), PullRequest()), sourceFile = __FILE__ ) { job(id = "detekt", runsOn = UbuntuLatest) { diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 7de72350..27215bea 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -4,7 +4,9 @@ name: 'Lint' on: - push: {} + push: + branches: + - 'main' pull_request: {} jobs: check_yaml_consistency: diff --git a/.github/workflows/unit-tests.main.kts b/.github/workflows/unit-tests.main.kts index fc1a6ca0..cda31fb9 100755 --- a/.github/workflows/unit-tests.main.kts +++ b/.github/workflows/unit-tests.main.kts @@ -18,7 +18,7 @@ import io.github.typesafegithub.workflows.dsl.workflow workflow( name = "Unit Tests", - on = listOf(Push(), PullRequest()), + on = listOf(Push(branches = listOf("main")), PullRequest()), sourceFile = __FILE__ ) { job(id = "unit-test", runsOn = RunnerType.UbuntuLatest) { diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index b287722b..c597fbf7 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -4,7 +4,9 @@ name: 'Unit Tests' on: - push: {} + push: + branches: + - 'main' pull_request: {} jobs: check_yaml_consistency: