Update test.yml
This commit is contained in:
parent
0fc3415356
commit
253a411426
1 changed files with 4 additions and 4 deletions
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
|
@ -2,7 +2,7 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- main
|
||||||
- 'releases/*'
|
- 'releases/*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -22,8 +22,8 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "##[set-output name=branchname;]$(echo ${GITHUB_REF##*/})"
|
echo "##[set-output name=branchname;]$(echo ${GITHUB_REF##*/})"
|
||||||
|
|
||||||
- name: 'Install dependency for master'
|
- name: 'Install dependency for main'
|
||||||
if: github.event.pull_request.base.ref == 'master' || steps.extract_branch.outputs.branchname == 'master'
|
if: github.event.pull_request.base.ref == 'main' || steps.extract_branch.outputs.branchname == 'main'
|
||||||
run: |
|
run: |
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
|
@ -78,4 +78,4 @@ jobs:
|
||||||
"Authorization" = "token ${env:GITHUB_TOKEN}"
|
"Authorization" = "token ${env:GITHUB_TOKEN}"
|
||||||
}
|
}
|
||||||
$body = "{ `"body`": `"${comment}`" }"
|
$body = "{ `"body`": `"${comment}`" }"
|
||||||
Invoke-RestMethod -Method POST -Uri $url -Headers $headers -Body $body
|
Invoke-RestMethod -Method POST -Uri $url -Headers $headers -Body $body
|
||||||
|
|
Loading…
Reference in a new issue