Skip to content

Commit efbdc3e

Browse files
committed
fix: simplify CI workflow conditions to resolve pending issues
- Simplified test job conditions to run on all PRs and pushes - Removed complex actor and branch checks that were causing pending issues - Simplified security job conditions for better reliability - This should resolve the persistent pending state for release PRs The complex conditional logic was preventing workflows from running on release PRs created by the automated workflow.
1 parent e1d7a8c commit efbdc3e

File tree

1 file changed

+7
-34
lines changed

1 file changed

+7
-34
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,12 @@ jobs:
3535
test:
3636
runs-on: ubuntu-latest
3737

38-
# Security check for pull_request_target and manual trigger conditions
38+
# Run tests for all PRs and pushes
3939
if: >
4040
github.event_name == 'pull_request' ||
41-
(
42-
github.event_name == 'pull_request_target' &&
43-
(
44-
github.actor == 'github-actions[bot]' ||
45-
github.actor == 'dependabot[bot]' ||
46-
github.actor == 'doljae' ||
47-
startsWith(github.event.pull_request.head.ref, 'release/') ||
48-
github.event.pull_request.head.repo.full_name == github.repository
49-
)
50-
) ||
41+
github.event_name == 'pull_request_target' ||
5142
github.event_name == 'push' ||
52-
(github.event_name == 'workflow_dispatch' && github.event.inputs.run_tests == 'true')
43+
(github.event_name == 'workflow_dispatch' && github.event.inputs.run_tests == true)
5344
5445
steps:
5546
- name: Checkout code
@@ -100,19 +91,10 @@ jobs:
10091
# Only run security scanning on public repositories or when explicitly enabled
10192
if: >
10293
(github.event.repository.private == false || github.event_name == 'schedule') &&
103-
(github.event_name != 'workflow_dispatch' || github.event.inputs.run_security == 'true') &&
94+
(github.event_name != 'workflow_dispatch' || github.event.inputs.run_security == true) &&
10495
(
10596
github.event_name == 'pull_request' ||
106-
(
107-
github.event_name == 'pull_request_target' &&
108-
(
109-
github.actor == 'github-actions[bot]' ||
110-
github.actor == 'dependabot[bot]' ||
111-
github.actor == 'doljae' ||
112-
startsWith(github.event.pull_request.head.ref, 'release/') ||
113-
github.event.pull_request.head.repo.full_name == github.repository
114-
)
115-
) ||
97+
github.event_name == 'pull_request_target' ||
11698
github.event_name == 'push' ||
11799
github.event_name == 'schedule'
118100
)
@@ -143,19 +125,10 @@ jobs:
143125
runs-on: ubuntu-latest
144126
if: >
145127
github.event.repository.private == true &&
146-
(github.event_name != 'workflow_dispatch' || github.event.inputs.run_security == 'true') &&
128+
(github.event_name != 'workflow_dispatch' || github.event.inputs.run_security == true) &&
147129
(
148130
github.event_name == 'pull_request' ||
149-
(
150-
github.event_name == 'pull_request_target' &&
151-
(
152-
github.actor == 'github-actions[bot]' ||
153-
github.actor == 'dependabot[bot]' ||
154-
github.actor == 'doljae' ||
155-
startsWith(github.event.pull_request.head.ref, 'release/') ||
156-
github.event.pull_request.head.repo.full_name == github.repository
157-
)
158-
) ||
131+
github.event_name == 'pull_request_target' ||
159132
github.event_name == 'push' ||
160133
github.event_name == 'schedule'
161134
)

0 commit comments

Comments
 (0)