mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-11-24 13:47:38 +00:00
ci: use reviewdog/action-suggester
for config-schema check (#4857)
* ci: use `reviewdog/action-suggester` for config-schema check * increase workflow permissions
This commit is contained in:
parent
b20270478c
commit
4c12a7878b
10
.github/workflows/workflow.yml
vendored
10
.github/workflows/workflow.yml
vendored
@ -135,6 +135,10 @@ jobs:
|
|||||||
name: Check if config schema is up to date
|
name: Check if config schema is up to date
|
||||||
needs: cargo_check
|
needs: cargo_check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
checks: write
|
||||||
|
contents: read
|
||||||
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
- name: Setup | Checkout
|
- name: Setup | Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -153,7 +157,11 @@ jobs:
|
|||||||
run: cargo run --locked --features config-schema -- config-schema > .github/config-schema.json
|
run: cargo run --locked --features config-schema -- config-schema > .github/config-schema.json
|
||||||
|
|
||||||
- name: Check | Detect Changes
|
- name: Check | Detect Changes
|
||||||
run: git diff --exit-code .github/config-schema.json
|
uses: reviewdog/action-suggester@v1.6.0
|
||||||
|
with:
|
||||||
|
tool_name: starship config-schema
|
||||||
|
filter_mode: nofilter
|
||||||
|
fail_on_error: 'true'
|
||||||
|
|
||||||
# Run tests on Linux, macOS, and Windows
|
# Run tests on Linux, macOS, and Windows
|
||||||
# On both Rust stable and Rust nightly
|
# On both Rust stable and Rust nightly
|
||||||
|
Loading…
Reference in New Issue
Block a user