From 22d1e345037eea853e54b84af718340cb9776513 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Wed, 30 Oct 2024 13:45:53 +0800 Subject: format yaml and json (#5428) * format yaml and json * format shell scripts --- .github/actions/format-setup/action.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to '.github/actions') 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 -- cgit v1.2.3