Remove branch specification from examples

This commit is contained in:
daz 2024-01-22 18:02:30 -07:00
parent 40c351e1fe
commit daf65fafa6
No known key found for this signature in database
3 changed files with 9 additions and 24 deletions

View file

@ -12,9 +12,7 @@ The intention is to eventually deprecate `gradle-build-action` with this being t
```yaml ```yaml
name: Build name: Build
on: on: [ push ]
workflow_dispatch:
push:
jobs: jobs:
build: build:
@ -43,10 +41,7 @@ Simply add this as a new workflow file to your repository (eg `.github/workflows
```yaml ```yaml
name: Dependency Submission name: Dependency Submission
on: on: [ push ]
push:
branches:
- main
permissions: permissions:
contents: write contents: write

View file

@ -14,10 +14,7 @@ Simply add this as a new workflow file to your repository (eg `.github/workflows
```yaml ```yaml
name: Dependency Submission name: Dependency Submission
on: on: [ push ]
push:
branches:
- main
permissions: permissions:
contents: write contents: write
@ -41,10 +38,7 @@ See the example below for a summary, and the [Action Metadata file](../dependenc
```yaml ```yaml
name: Dependency Submission with advanced config name: Dependency Submission with advanced config
on: on: [ push ]
push:
branches:
- main
permissions: permissions:
contents: read contents: read
@ -82,8 +76,7 @@ Example of a pull request workflow that executes a build for a pull request and
```yaml ```yaml
name: Dependency review for pull requests name: Dependency review for pull requests
on: on: [ pull_request ]
pull_request:
permissions: permissions:
contents: write contents: write
@ -121,8 +114,7 @@ Because of this restriction, we require 2 separate workflows in order to generat
```yaml ```yaml
name: Generate and save dependency graph name: Generate and save dependency graph
on: on: [ pull_request ]
pull_request:
permissions: permissions:
contents: read # 'write' permission is not available 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 ```yaml
name: dependency-review name: dependency-review
on:
pull_request: on: [ pull_request ]
permissions: permissions:
contents: read contents: read

View file

@ -8,9 +8,7 @@ The intention is to eventually deprecate `gradle-build-action` with this being t
```yaml ```yaml
name: Build name: Build
on: on: [ push ]
workflow_dispatch:
push:
jobs: jobs:
build: build: