From 49660865b2d2dc2bee537a4a1884d65472f68cba Mon Sep 17 00:00:00 2001 From: Nick Gerleman Date: Sat, 24 Dec 2022 23:55:25 -0800 Subject: [PATCH] set via BASHOPTS --- .github/actions/clang-format/action.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/actions/clang-format/action.yml b/.github/actions/clang-format/action.yml index 8d9a57a3..b81af54f 100644 --- a/.github/actions/clang-format/action.yml +++ b/.github/actions/clang-format/action.yml @@ -18,7 +18,6 @@ runs: - name: clang-format working-directory: ${{ inputs.directory }} shell: bash - run: | - shopt -s extglob - shopt -s nullglob - clang-format-${{ inputs.version }} --dry-run --Werror **/*.{h,hh,hpp,c,cpp,cc,m,mm} + env: + BASHOPTS: extglob:nullglob + run: clang-format-${{ inputs.version }} --dry-run --Werror **/*.{h,hh,hpp,c,cpp,cc,m,mm}