summaryrefslogtreecommitdiffstats
path: root/.github/actions
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2024-10-30 13:45:53 +0800
committerGitHub <noreply@github.com>2024-10-30 13:45:53 +0800
commit22d1e345037eea853e54b84af718340cb9776513 (patch)
treee63754ab1e7c7f6c95d75ff5bc785b9afdbd54b4 /.github/actions
parent44dc5ea202ac43cd4f18c268e95143c2a23f5d26 (diff)
format yaml and json (#5428)
* format yaml and json * format shell scripts
Diffstat (limited to '.github/actions')
-rw-r--r--.github/actions/format-setup/action.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/.github/actions/format-setup/action.yml b/.github/actions/format-setup/action.yml
index d99be4d3a..1028ce6bb 100644
--- a/.github/actions/format-setup/action.yml
+++ b/.github/actions/format-setup/action.yml
@@ -19,3 +19,19 @@ runs:
https://github.com/shader-slang/slang-binaries/raw/306d22efc0f5f72c7230b0b6b7c99f03c46995bd/clang-format/x86_64-linux/bin/clang-format
chmod +x "$tmpdir/clang-format"
echo "$tmpdir" >> $GITHUB_PATH
+
+ - name: install prettier
+ shell: bash
+ run: |
+ npm install -g prettier@3.3.3
+ echo "$(npm bin -g)" >> $GITHUB_PATH
+
+ - name: install shfmt
+ shell: bash
+ run: |
+ tmpdir=$(mktemp -d)
+ curl -L -H "Authorization: token ${{github.token}}" \
+ -o "$tmpdir/shfmt" \
+ https://github.com/mvdan/sh/releases/download/v3.10.0/shfmt_v3.10.0_linux_amd64
+ chmod +x "$tmpdir/shfmt"
+ echo "$tmpdir" >> $GITHUB_PATH