瀏覽代碼

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

Kroese 1 周之前
父節點
當前提交
a0bcd719be
共有 1 個文件被更改,包括 19 次插入0 次删除
  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 }}