diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 083d683..2418f76 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -17,10 +17,11 @@ permissions: read-all on: # yamllint disable-line rule:truthy push: - branches: ["main", "develop", "feature/*"] + branches: ["main"] pull_request: # The branches below must be a subset of the branches above branches: ["main"] + workflow_dispatch: schedule: # ┌───────────── minute (0 - 59) # │ ┌───────────── hour (0 - 23) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 0148273..425ef09 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -4,9 +4,11 @@ name: Docker Image CI on: # yamllint disable-line rule:truthy push: - branches: ["main", "develop", "feature/*"] + branches: ["main"] pull_request: + # The branches below must be a subset of the branches above branches: ["main"] + workflow_dispatch: env: IMAGE_NAME: algorithm-exercises-java diff --git a/.github/workflows/java-gradle-coverage.yml b/.github/workflows/java-gradle-coverage.yml index 89721d0..2d7018d 100644 --- a/.github/workflows/java-gradle-coverage.yml +++ b/.github/workflows/java-gradle-coverage.yml @@ -12,9 +12,11 @@ name: Java CI Coverage with Gradle on: # yamllint disable-line rule:truthy push: - branches: ["main", "develop", "feature/*"] + branches: ["main"] pull_request: + # The branches below must be a subset of the branches above branches: ["main"] + workflow_dispatch: permissions: contents: read diff --git a/.github/workflows/java-gradle.yml b/.github/workflows/java-gradle.yml index 82dff19..9f6b2fc 100644 --- a/.github/workflows/java-gradle.yml +++ b/.github/workflows/java-gradle.yml @@ -12,9 +12,11 @@ name: Java CI Tests with Gradle on: # yamllint disable-line rule:truthy push: - branches: ["main", "develop", "feature/*"] + branches: ["main"] pull_request: + # The branches below must be a subset of the branches above branches: ["main"] + workflow_dispatch: permissions: contents: read diff --git a/.github/workflows/markdown-lint.yml b/.github/workflows/markdown-lint.yml index b9fdb24..096527f 100644 --- a/.github/workflows/markdown-lint.yml +++ b/.github/workflows/markdown-lint.yml @@ -3,9 +3,11 @@ name: Markdown Lint on: # yamllint disable-line rule:truthy push: - branches: ["main", "develop", "feature/*"] + branches: ["main"] pull_request: + # The branches below must be a subset of the branches above branches: ["main"] + workflow_dispatch: permissions: read-all diff --git a/.github/workflows/snyk-code.yml b/.github/workflows/snyk-code.yml index bbb6540..1d51817 100644 --- a/.github/workflows/snyk-code.yml +++ b/.github/workflows/snyk-code.yml @@ -2,7 +2,10 @@ name: Snyk Code (Java gradle-jdk17) -on: push # yamllint disable-line rule:truthy +on: # yamllint disable-line rule:truthy + push: + pull_request: + workflow_dispatch: jobs: security: diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 811c1f8..2868906 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -4,9 +4,10 @@ name: SonarCloud on: # yamllint disable-line rule:truthy push: - branches: ["main", "develop", "feature/*"] + branches: ["main"] pull_request: types: [opened, synchronize, reopened] + workflow_dispatch: permissions: read-all diff --git a/.github/workflows/yamllint.yml b/.github/workflows/yamllint.yml index b9ea0a1..6f69003 100644 --- a/.github/workflows/yamllint.yml +++ b/.github/workflows/yamllint.yml @@ -3,9 +3,11 @@ name: YAML lint on: # yamllint disable-line rule:truthy push: - branches: ["main", "develop", "feature/*"] + branches: ["main"] pull_request: + # The branches below must be a subset of the branches above branches: ["main"] + workflow_dispatch: jobs: lint: