mirror of
https://github.com/gradle/actions
synced 2024-11-27 11:52:24 +00:00
Remove branch specification from examples
This commit is contained in:
parent
40c351e1fe
commit
daf65fafa6
3 changed files with 9 additions and 24 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue