Răsfoiți Sursa

build: Add review workflow for shell formatting (#1527)

Kroese 1 săptămână în urmă
părinte
comite
a0bcd719be
1 a modificat fișierele cu 19 adăugiri și 0 ștergeri
  1. 19 0
      .github/workflows/review.yml

+ 19 - 0
.github/workflows/review.yml

@@ -0,0 +1,19 @@
+on:
+  pull_request:
+
+name: "Review"
+
+jobs:
+  review:
+    name: review
+    runs-on: ubuntu-latest
+    steps:
+      -
+        name: Checkout
+        uses: actions/checkout@v5
+      -
+        name: Review
+        uses: reviewdog/action-shfmt@v1
+        with:
+          shfmt_flags: "-i 2 -ci -bn"
+          github_token: ${{ secrets.REPO_ACCESS_TOKEN }}