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
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

View file

@ -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

View file

@ -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: