Skip to content

Commit 6115fb4

Browse files
committed
move condition to job itself, added npm ci
1 parent 96a82ee commit 6115fb4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
automerge:
2828
runs-on: ubuntu-latest
2929
needs: build
30+
if: ${{ github.actor == 'AzureSDKAutomation' && startsWith(github.head_ref, 'sdkAutomation') }}
3031
steps:
3132
- uses: actions/checkout@v2
3233

@@ -35,8 +36,11 @@ jobs:
3536
with:
3637
node-version: 10.x
3738

39+
- name: Install NPM modules
40+
run: npm ci
41+
working-directory: ./generator
42+
3843
- name: Check RP in Autogenlist
39-
if: ${{ github.actor == 'AzureSDKAutomation' && startsWith(github.head_ref, 'sdkAutomation') }}
4044
run: |
4145
check_result='';
4246
exec=$(npm run find-basepath ${{ github.head_ref }});
@@ -52,7 +56,6 @@ jobs:
5256
working-directory: ./generator
5357

5458
- name: Automerge
55-
if: ${{ github.actor == 'AzureSDKAutomation' && startsWith(github.head_ref, 'sdkAutomation') && env.AUTOGENLIST_CHECK_RESULT == 'true' }}
5659
uses: "pascalgn/automerge-action@v0.12.0"
5760
env:
5861
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)