Skip to content

Commit e19a420

Browse files
authored
Restore action
1 parent 5b4f990 commit e19a420

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
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

@@ -46,7 +46,23 @@ jobs:
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 }}"

0 commit comments

Comments
 (0)