From daf65fafa6f048b1b860c9f75bee84c5d380855a Mon Sep 17 00:00:00 2001 From: daz Date: Mon, 22 Jan 2024 18:02:30 -0700 Subject: [PATCH] Remove branch specification from examples --- README.md | 9 ++------- dependency-submission/README.md | 20 ++++++-------------- setup-gradle/README.md | 4 +--- 3 files changed, 9 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 7efc9d8..c5614ee 100644 --- a/README.md +++ b/README.md @@ -12,9 +12,7 @@ The intention is to eventually deprecate `gradle-build-action` with this being t ```yaml name: Build -on: - workflow_dispatch: - push: +on: [ push ] jobs: build: @@ -43,10 +41,7 @@ Simply add this as a new workflow file to your repository (eg `.github/workflows ```yaml name: Dependency Submission -on: - push: - branches: - - main +on: [ push ] permissions: contents: write diff --git a/dependency-submission/README.md b/dependency-submission/README.md index 366392c..2e6a444 100644 --- a/dependency-submission/README.md +++ b/dependency-submission/README.md @@ -14,10 +14,7 @@ Simply add this as a new workflow file to your repository (eg `.github/workflows ```yaml name: Dependency Submission -on: - push: - branches: - - main +on: [ push ] permissions: contents: write @@ -41,10 +38,7 @@ See the example below for a summary, and the [Action Metadata file](../dependenc ```yaml name: Dependency Submission with advanced config -on: - push: - branches: - - main +on: [ push ] permissions: contents: read @@ -82,8 +76,7 @@ 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 @@ -121,8 +114,7 @@ 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 @@ -171,8 +163,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/setup-gradle/README.md b/setup-gradle/README.md index ee14562..f387a62 100644 --- a/setup-gradle/README.md +++ b/setup-gradle/README.md @@ -8,9 +8,7 @@ The intention is to eventually deprecate `gradle-build-action` with this being t ```yaml name: Build -on: - workflow_dispatch: - push: +on: [ push ] jobs: build: