File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 3333 needs : build
3434 env :
3535 PR_PREFIX : sdkAuto/
36- if : ${{ github.actor == 'jorgecotillo ' }}
36+ if : ${{ github.actor == 'openapi-sdkautomation[bot] ' }}
3737 steps :
3838 - uses : actions/checkout@v2
3939
4646 run : npm ci
4747 working-directory : ./generator
4848
49+ - name : Check RP in Autogenlist
50+ run : |
51+ check_result='';
52+ exec=$(npm run find-basepath ${{ github.head_ref }} $PR_PREFIX);
53+ while read line;
54+ do
55+ # overriding check_result until the last line is read, last line contains
56+ # the result to whether or not the basepath was found in autogenlist.
57+ check_result=$line;
58+ echo $check_result;
59+ done <<< "$exec";
60+
61+ echo "AUTOGENLIST_CHECK_RESULT=$check_result" >> $GITHUB_ENV;
62+ working-directory : ./generator
63+
4964 - name : Automerge
65+ if : ${{ env.AUTOGENLIST_CHECK_RESULT == 'true' }}
5066 uses :
" pascalgn/[email protected] " 5167 env :
5268 GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
You can’t perform that action at this time.
0 commit comments