Skip to content

Commit 027b829

Browse files
committed
fix run
1 parent 964c1f1 commit 027b829

9 files changed

+21
-63
lines changed

.github/workflows/codeflash-optimize.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
name: CodeFlash
22

33
on:
4-
# For specific file changes
4+
# Use pull_request_target for everything to ensure access to secrets
55
pull_request_target:
66
paths:
7-
- '.github/workflows/**'
8-
9-
# For all other changes
10-
pull_request:
11-
paths-ignore:
12-
- '.github/workflows/**'
7+
- '**' # Trigger for all paths
138

149
workflow_dispatch:
1510

.github/workflows/end-to-end-test-bubblesort-pytest-no-git.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
name: end-to-end-test
22

33
on:
4-
# For specific file changes
4+
# Use pull_request_target for everything to ensure access to secrets
55
pull_request_target:
66
paths:
7-
- '.github/workflows/**'
8-
9-
# For all other changes
10-
pull_request:
11-
paths-ignore:
12-
- '.github/workflows/**'
7+
- '**' # Trigger for all paths
138

149
workflow_dispatch:
1510

.github/workflows/end-to-end-test-bubblesort-unittest.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
name: end-to-end-test
22

33
on:
4-
# For specific file changes
4+
# Use pull_request_target for everything to ensure access to secrets
55
pull_request_target:
66
paths:
7-
- '.github/workflows/**'
8-
9-
# For all other changes
10-
pull_request:
11-
paths-ignore:
12-
- '.github/workflows/**'
7+
- '**' # Trigger for all paths
138

149
workflow_dispatch:
1510

.github/workflows/end-to-end-test-coverage.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
name: Coverage E2E
22

33
on:
4-
# For specific file changes
4+
# Use pull_request_target for everything to ensure access to secrets
55
pull_request_target:
66
paths:
7-
- '.github/workflows/**'
8-
9-
# For all other changes
10-
pull_request:
11-
paths-ignore:
12-
- '.github/workflows/**'
7+
- '**' # Trigger for all paths
138

149
workflow_dispatch:
1510

.github/workflows/end-to-end-test-futurehouse.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
name: end-to-end-test
22

33
on:
4-
# For specific file changes
4+
# Use pull_request_target for everything to ensure access to secrets
55
pull_request_target:
66
paths:
7-
- '.github/workflows/**'
8-
9-
# For all other changes
10-
pull_request:
11-
paths-ignore:
12-
- '.github/workflows/**'
7+
- '**' # Trigger for all paths
138

149
workflow_dispatch:
1510

.github/workflows/end-to-end-test-init-optim.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
name: end-to-end-test
22

33
on:
4-
# For specific file changes
4+
# Use pull_request_target for everything to ensure access to secrets
55
pull_request_target:
66
paths:
7-
- '.github/workflows/**'
8-
9-
# For all other changes
10-
pull_request:
11-
paths-ignore:
12-
- '.github/workflows/**'
13-
7+
- '**' # Trigger for all paths
148
workflow_dispatch:
159

1610
jobs:

.github/workflows/end-to-end-test-tracer-replay.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
name: end-to-end-test
22

33
on:
4-
# For specific file changes
4+
# Use pull_request_target for everything to ensure access to secrets
55
pull_request_target:
66
paths:
7-
- '.github/workflows/**'
8-
9-
# For all other changes
10-
pull_request:
11-
paths-ignore:
12-
- '.github/workflows/**'
13-
7+
- '**' # Trigger for all paths
148
workflow_dispatch:
159

1610
jobs:

.github/workflows/end-to-end-topological-sort-test.yaml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
name: end-to-end-test
22

33
on:
4-
# For specific file changes
4+
# Use pull_request_target for everything to ensure access to secrets
55
pull_request_target:
66
paths:
7-
- '.github/workflows/**'
8-
9-
# For all other changes
10-
pull_request:
11-
paths-ignore:
12-
- '.github/workflows/**'
7+
- '**' # Trigger for all paths
138

149
workflow_dispatch:
1510

@@ -32,7 +27,7 @@ jobs:
3227
fetch-depth: 0
3328
token: ${{ secrets.GITHUB_TOKEN }}
3429

35-
- name: Validate PR
30+
- name: Validate PR for workflow changes
3631
run: |
3732
# Check for any workflow changes
3833
if git diff --name-only "${{ github.event.pull_request.base.sha }}" "${{ github.sha }}" | grep -q "^.github/workflows/"; then
@@ -43,8 +38,8 @@ jobs:
4338
# Allowlist check
4439
if [[ "$AUTHOR" == "misrasaurabh1" || "$AUTHOR" == "KRRT7" ]]; then
4540
echo "✅ Authorized user ($AUTHOR). Proceeding."
46-
elif [[ "${{ github.event_name }}" == "pull_request_target" && "${{ github.event.pull_request.state }}" == "open" ]]; then
47-
echo "✅ PR triggered by 'pull_request_target' and is open. Assuming protection rules are in place. Proceeding."
41+
elif [[ "${{ github.event.pull_request.state }}" == "open" ]]; then
42+
echo "✅ PR is open. Assuming protection rules are in place. Proceeding."
4843
else
4944
echo "⛔ Unauthorized user ($AUTHOR) attempting to modify workflows. Exiting."
5045
exit 1

.github/workflows/label-workflow-changes.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ jobs:
2424
owner: context.repo.owner,
2525
repo: context.repo.repo
2626
});
27-
27+
2828
const labelExists = labels.data.some(label => label.name === labelName);
29-
29+
3030
if (!labelExists) {
3131
// Create the label if it doesn't exist
3232
await github.rest.issues.createLabel({

0 commit comments

Comments
 (0)