Skip to content

Commit 0059ade

Browse files
authored
fix(ci): formatting event & chmod +x (#1335)
1 parent e1daaa6 commit 0059ade

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.github/workflows/validate-formatting.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Get changed files
3939
id: changed-files
4040
run: |
41-
if ${{ github.event_name == 'pull_request' }}; then
41+
if ${{ github.event_name == 'pull_request_target' }}; then
4242
echo "files=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ steps.pr.outputs.result && fromJSON(steps.pr.outputs.result).merge_commit_sha }} | grep -E '\.(sh|func)$' | xargs)" >> $GITHUB_OUTPUT
4343
else
4444
echo "files=$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }} | grep -E '\.(sh|func)$' | xargs)" >> $GITHUB_OUTPUT
@@ -70,7 +70,7 @@ jobs:
7070
fi
7171
7272
- name: Post comment with results
73-
if: always() && steps.changed-files.outputs.files != '' && github.event_name == 'pull_request'
73+
if: always() && steps.changed-files.outputs.files != '' && github.event_name == 'pull_request_target'
7474
uses: actions/github-script@v7
7575
with:
7676
script: |

.github/workflows/validate-scripts.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ jobs:
3333
with:
3434
fetch-depth: 0 # Ensure the full history is fetched for accurate diffing
3535
ref: ${{ github.event_name == 'pull_request_target' && fromJSON(steps.pr.outputs.result).merge_commit_sha || '' }}
36-
37-
- name: Set execute permission for .sh files
38-
run: |
39-
chmod +x ct/*.sh
4036

4137
- name: Get changed files
4238
id: changed-files

0 commit comments

Comments
 (0)