1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-12-25 03:16:01 +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:
David Knaack 2023-03-02 18:49:26 +01:00 committed by GitHub
parent b20270478c
commit 4c12a7878b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,6 +135,10 @@ jobs:
name: Check if config schema is up to date
needs: cargo_check
runs-on: ubuntu-latest
permissions:
checks: write
contents: read
pull-requests: write
steps:
- name: Setup | Checkout
uses: actions/checkout@v3
@ -153,7 +157,11 @@ jobs:
run: cargo run --locked --features config-schema -- config-schema > .github/config-schema.json
- 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
# On both Rust stable and Rust nightly