Skip to content

Commit 9cb3a2b

Browse files
authored
chore: bump version to v2.3 (#16)
1 parent 636e2a0 commit 9cb3a2b

File tree

4 files changed

+27
-28
lines changed

4 files changed

+27
-28
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,26 @@ jobs:
1414
git config --global core.autocrlf false
1515
git config --global core.eol lf
1616
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818

1919
- name: Check formatting latest
2020
uses: ./
2121

2222
- name: Check formatting specific version
2323
uses: ./
2424
with:
25-
dprint-version: 0.30.3
25+
dprint-version: 0.49.1
2626

2727
- name: Check formatting specific config
2828
uses: ./
2929
with:
30-
config-path: 'dprint.json'
30+
config-path: "dprint.json"
3131

3232
- name: Check formatting specific version and config
3333
uses: ./
3434
with:
35-
dprint-version: 0.30.3
36-
config-path: 'dprint.json'
35+
dprint-version: 0.49.1
36+
config-path: "dprint.json"
3737

3838
- name: make poorly-formatted json file
3939
run: |
@@ -42,4 +42,3 @@ jobs:
4242
uses: ./
4343
with:
4444
args: --excludes poorly-formatted.json
45-

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ jobs:
1212
style:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616

17-
- uses: dprint/check@v2.2
17+
- uses: dprint/check@v2.3
1818
```
1919
2020
If you are using a matrix, most likely you will only want to run it only on Linux. For example:
2121
2222
```yml
23-
- uses: dprint/check@v2.2
23+
- uses: dprint/check@v2.3
2424
if: runner.os == 'Linux'
2525
```
2626
@@ -33,7 +33,7 @@ By default, `dprint/check` uses the latest version of dprint.
3333
To use a specific version, specify that with the `dprint-version` input:
3434

3535
```yml
36-
- uses: dprint/check@v2.2
36+
- uses: dprint/check@v2.3
3737
with:
3838
dprint-version: 0.30.3
3939
```
@@ -47,7 +47,7 @@ By default, `dprint/check` uses the auto-discovered configuration file.
4747
To use a specific config, specify that with the `config-path` input:
4848

4949
```yml
50-
- uses: dprint/check@v2.2
50+
- uses: dprint/check@v2.3
5151
with:
5252
config-path: dprint-ci.json
5353
```
@@ -60,7 +60,7 @@ To pass additional arguments to `dprint check`, pass them to the `args` input. E
6060
- name: Get changed files
6161
id: changed-files
6262
uses: tj-actions/changed-files@v45
63-
- uses: dprint/check@v2.2
63+
- uses: dprint/check@v2.3
6464
with:
6565
args: >-
6666
--allow-no-files
@@ -89,5 +89,5 @@ You can fix this by only running the action on Linux as shown above (recommended
8989
git config --global core.autocrlf false
9090
git config --global core.eol lf
9191
92-
- uses: actions/checkout@v3
92+
- uses: actions/checkout@v4
9393
```

action.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
name: 'dprint-check-action'
2-
description: 'Run `dprint check` on your source code'
3-
author: 'thomaseizinger'
1+
name: "dprint-check-action"
2+
description: "Run `dprint check` on your source code"
3+
author: "thomaseizinger"
44
inputs:
55
dprint-version:
6-
description: 'Specific dprint version to use (ex. 0.30.3)'
6+
description: "Specific dprint version to use (ex. 0.30.3)"
77
required: false
8-
default: ''
8+
default: ""
99
config-path:
10-
description: 'Specific dprint config to use (ex. dprint.json)'
10+
description: "Specific dprint config to use (ex. dprint.json)"
1111
required: false
12-
default: ''
12+
default: ""
1313
args:
14-
description: 'Additional arguments to pass to dprint check'
14+
description: "Additional arguments to pass to dprint check"
1515
required: false
16-
default: ''
16+
default: ""
1717
runs:
18-
using: 'composite'
18+
using: "composite"
1919
steps:
2020
- name: Install dprint
2121
shell: bash
@@ -31,5 +31,5 @@ runs:
3131
if: "${{ inputs.config-path != '' }}"
3232
run: ~/.dprint/bin/dprint check --config '${{ inputs.config-path }}' ${{ inputs.args }}
3333
branding:
34-
icon: 'check-circle'
35-
color: 'gray-dark'
34+
icon: "check-circle"
35+
color: "gray-dark"

dprint.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"includes": ["**/*.{md,json}"],
32
"plugins": [
4-
"https://plugins.dprint.dev/json-0.15.3.wasm",
5-
"https://plugins.dprint.dev/markdown-0.13.3.wasm"
3+
"https://plugins.dprint.dev/json-0.20.0.wasm",
4+
"https://plugins.dprint.dev/markdown-0.18.0.wasm",
5+
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.1.wasm"
66
]
77
}

0 commit comments

Comments
 (0)