Skip to content

Commit 25979c3

Browse files
committed
Point the README and the example at v3
v3 is v2 plus the optional code scanning report, so the README and the example workflow now use @V3, and the README says what tells the two apart. The v3 tag is made on this commit.
1 parent 63406a5 commit 25979c3

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ No Java, Maven, or Gradle required — downloads a native binary from Maven Cent
99
```yaml
1010
- uses: actions/checkout@v7
1111

12-
- uses: openjavaformat/open-java-format-action@v2
12+
- uses: openjavaformat/open-java-format-action@v3
1313
with:
1414
version: '2.98.0.6'
1515
```
1616
17-
v2 is for open-java-format 2.98.0.2 and later, which has a single style. A workflow that pins 2.98.0.1 stays on `@v1`, which passes that version the `--ojf` flag it needs.
17+
v3 is for open-java-format 2.98.0.2 and later, which has a single style; it differs from v2 by the optional [code scanning report](#code-scanning). A workflow that pins 2.98.0.1 stays on `@v1`, which passes that version the `--ojf` flag it needs.
1818

1919
## Inputs
2020

@@ -88,7 +88,7 @@ jobs:
8888
steps:
8989
- uses: actions/checkout@v7
9090
91-
- uses: openjavaformat/open-java-format-action@v2
91+
- uses: openjavaformat/open-java-format-action@v3
9292
with:
9393
version: '2.98.0.6'
9494
mode: ${{ github.event_name == 'push' && 'all' || 'changed' }}
@@ -114,7 +114,7 @@ jobs:
114114
steps:
115115
- uses: actions/checkout@v7
116116
117-
- uses: openjavaformat/open-java-format-action@v2
117+
- uses: openjavaformat/open-java-format-action@v3
118118
with:
119119
version: '2.98.0.6'
120120
mode: ${{ github.event_name == 'push' && 'all' || 'changed' }}

‎example-usage.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@v7
1616

1717
- name: Check formatting
18-
uses: openjavaformat/open-java-format-action@v2
18+
uses: openjavaformat/open-java-format-action@v3
1919
with:
2020
version: '2.98.0.6'
2121
mode: ${{ github.event_name == 'push' && 'all' || 'changed' }}

0 commit comments

Comments
 (0)