File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 33on :
44 pull_request :
55 branches : [ master ]
6-
76jobs :
87 build :
98 runs-on : ubuntu-latest
3231 automerge :
3332 runs-on : ubuntu-latest
3433 needs : build
35- if : ${{ contains(github.actor, 'openapi-sdkautomation') && startsWith(github.head_ref, 'sdkAuto/') }}
34+ env :
35+ PR_PREFIX : sdkAuto/
36+ if : ${{ github.actor == 'openapi-sdkautomation' }}
3637 steps :
3738 - uses : actions/checkout@v2
3839
4849 - name : Check RP in Autogenlist
4950 run : |
5051 check_result='';
51- exec=$(npm run find-basepath ${{ github.head_ref }});
52+ exec=$(npm run find-basepath ${{ github.head_ref }} $PR_PREFIX );
5253 while read line;
5354 do
5455 # overriding check_result until the last line is read, last line contains
Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ executeSynchronous(async () => {
99 }
1010
1111 const prName = process . argv [ 2 ] ;
12- let basePath = prName . replace ( "sdkAutomation/" , "" ) ;
12+ const prPrefix = process . argv [ 3 ] ;
13+ let basePath = prName . replace ( prPrefix , "" ) ;
1314
1415 // format basePath
1516 basePath = `${ basePath } /resource-manager` ;
You can’t perform that action at this time.
0 commit comments