Skip to content

Commit 428505c

Browse files
Fix bot style GH action (again) (#2909)
* small nit * fix
1 parent af8aa38 commit 428505c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/style-bot-action.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,8 @@ jobs:
117117
env:
118118
pre_commit_script: ${{ inputs.pre_commit_script }}
119119
if: inputs.pre_commit_script != ''
120-
shell: bash
121120
run: |
122-
echo "$pre_commit_script" > pre_commit_script.sh
123-
chmod +x pre_commit_script.sh
124-
./pre_commit_script.sh
121+
bash -c "${pre_commit_script}"
125122
126123
- name: Run style command
127124
env:

0 commit comments

Comments
 (0)