Unverified Commit daf65faf authored by daz's avatar daz
Browse files

Remove branch specification from examples

parent 40c351e1
Loading
Loading
Loading
Loading
+2 −7
Changes for README.md: 2 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -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
+6 −14
Changes for dependency-submission/README.md: 6 added lines, 14 removed lines.
Original line number Diff line number Diff line
@@ -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
+1 −3
Changes for setup-gradle/README.md: 1 added line, 3 removed lines.
Original line number Diff line number Diff line
@@ -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: