diff --git a/README.md b/README.md index 2ad3ea6..4de2d04 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,8 @@ The recommended way to execute any Gradle build is with the help of the [Gradle ```yaml name: Build -on: [ push ] +on: + push: jobs: build: @@ -48,7 +49,9 @@ Simply add this as a new workflow file to your repository (eg `.github/workflows ```yaml name: Dependency Submission -on: [ push ] +on: + push: + branches: [ 'main' ] permissions: contents: write @@ -80,7 +83,10 @@ The action should be run in the root of the repository, as it will recursively s ```yaml name: "Validate Gradle Wrapper" -on: [push, pull_request] + +on: + push: + pull_request: jobs: validation: diff --git a/dependency-submission/README.md b/dependency-submission/README.md index 8c93877..4e739bf 100644 --- a/dependency-submission/README.md +++ b/dependency-submission/README.md @@ -10,7 +10,9 @@ Simply add this as a new workflow file to your repository (eg `.github/workflows ```yaml name: Dependency Submission -on: [ push ] +on: + push: + branches: ['main'] permissions: contents: write diff --git a/docs/dependency-submission.md b/docs/dependency-submission.md index 0667511..27283ed 100644 --- a/docs/dependency-submission.md +++ b/docs/dependency-submission.md @@ -25,7 +25,9 @@ Simply add this as a new workflow file to your repository (eg `.github/workflows ```yaml name: Dependency Submission -on: [ push ] +on: + push: + branches: [ 'main' ] permissions: contents: write @@ -292,7 +294,8 @@ Example of a pull request workflow that executes a build for a pull request and ```yaml name: Dependency review for pull requests -on: [ pull_request ] +on: + pull_request: permissions: contents: write @@ -327,7 +330,8 @@ Because of this restriction, we require 2 separate workflows in order to generat ```yaml name: Generate and save dependency graph -on: [ pull_request ] +on: + pull_request: permissions: contents: read # 'write' permission is not available @@ -381,7 +385,8 @@ Here's an example of a separate "Dependency Review" workflow that will wait for ```yaml name: dependency-review -on: [ pull_request ] +on: + pull_request: permissions: contents: read diff --git a/docs/setup-gradle.md b/docs/setup-gradle.md index 0c29442..17fe73d 100644 --- a/docs/setup-gradle.md +++ b/docs/setup-gradle.md @@ -28,7 +28,8 @@ The recommended way to execute any Gradle build is with the help of the [Gradle ```yaml name: Run Gradle on every push -on: push +on: + push: jobs: gradle: diff --git a/docs/wrapper-validation.md b/docs/wrapper-validation.md index 28ce668..21e6dfc 100644 --- a/docs/wrapper-validation.md +++ b/docs/wrapper-validation.md @@ -56,7 +56,10 @@ Here's a sample complete workflow you can add to your repositories: **`.github/workflows/gradle-wrapper-validation.yml`** ```yaml name: "Validate Gradle Wrapper" -on: [push, pull_request] + +on: + push: + pull_request: jobs: validation: diff --git a/setup-gradle/README.md b/setup-gradle/README.md index 4087e60..cd3688c 100644 --- a/setup-gradle/README.md +++ b/setup-gradle/README.md @@ -11,7 +11,8 @@ The recommended way to execute any Gradle build is with the help of the [Gradle ```yaml name: Build -on: [ push ] +on: + push: jobs: build: diff --git a/wrapper-validation/README.md b/wrapper-validation/README.md index e89b918..a081703 100644 --- a/wrapper-validation/README.md +++ b/wrapper-validation/README.md @@ -8,7 +8,10 @@ The action should be run in the root of the repository, as it will recursively s ```yaml name: "Validate Gradle Wrapper" -on: [push, pull_request] + +on: + push: + pull_request: jobs: validation: