File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 19
19
require : write
20
20
username : ${{ github.triggering_actor }}
21
21
error-if-missing : true
22
+ # Skip permission check for the codegen bot
23
+ if : ${{ github.triggering_actor != 'codegen-sh[bot]' }}
22
24
23
25
unit-tests :
24
- needs : access-check
26
+ # Only require access-check if it's not the codegen bot
27
+ needs : ${{ github.triggering_actor != 'codegen-sh[bot]' && 'access-check' || '' }}
25
28
runs-on : ubuntu-latest-8
26
29
steps :
27
30
- uses : actions/checkout@v4
48
51
codecov_token : ${{ secrets.CODECOV_TOKEN }}
49
52
50
53
codemod-tests :
51
- needs : access-check
54
+ # Only require access-check if it's not the codegen bot
55
+ needs : ${{ github.triggering_actor != 'codegen-sh[bot]' && 'access-check' || '' }}
52
56
# TODO: re-enable when this check is a develop required check
53
57
if : false
54
58
runs-on : ubuntu-latest-32
90
94
GITHUB_WORKSPACE : $GITHUB_WORKSPACE
91
95
92
96
parse-tests :
93
- needs : access-check
97
+ # Only require access-check if it's not the codegen bot
98
+ needs : ${{ github.triggering_actor != 'codegen-sh[bot]' && 'access-check' || '' }}
94
99
if : contains(github.event.pull_request.labels.*.name, 'parse-tests') || github.event_name == 'push' || github.event_name == 'workflow_dispatch'
95
100
runs-on : ubuntu-latest-32
96
101
steps :
@@ -161,7 +166,8 @@ jobs:
161
166
}
162
167
163
168
integration-tests :
164
- needs : access-check
169
+ # Only require access-check if it's not the codegen bot
170
+ needs : ${{ github.triggering_actor != 'codegen-sh[bot]' && 'access-check' || '' }}
165
171
runs-on : ubuntu-latest-16
166
172
steps :
167
173
- uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments