Update test.yml

This commit is contained in:
Deepak Sattiraju 2021-03-16 11:48:18 +05:30 committed by GitHub
parent 0fc3415356
commit 253a411426
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@ on:
pull_request:
push:
branches:
- master
- main
- 'releases/*'
jobs:
@ -22,8 +22,8 @@ jobs:
run: |
echo "##[set-output name=branchname;]$(echo ${GITHUB_REF##*/})"
- name: 'Install dependency for master'
if: github.event.pull_request.base.ref == 'master' || steps.extract_branch.outputs.branchname == 'master'
- name: 'Install dependency for main'
if: github.event.pull_request.base.ref == 'main' || steps.extract_branch.outputs.branchname == 'main'
run: |
npm install