mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2025-12-16 05:06:31 +00:00
build updates (#256)
* Update test to build on main branch instead of master * Update workflows to use actions/checkout@v2, which performs a shallow clone by default, so should be slightly faster
This commit is contained in:
parent
9632fd5dc1
commit
832d4d1261
3 changed files with 6 additions and 6 deletions
|
|
@ -1,12 +1,12 @@
|
||||||
name: Comment on Pull Request
|
name: Comment on Pull Request
|
||||||
on:
|
on:
|
||||||
- pull_request
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
comment:
|
comment:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- uses: ./
|
- uses: ./
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
|
||||||
4
.github/workflows/comment_on_push.yml
vendored
4
.github/workflows/comment_on_push.yml
vendored
|
|
@ -1,12 +1,12 @@
|
||||||
name: Comment on Push
|
name: Comment on Push
|
||||||
on:
|
on:
|
||||||
- push
|
push:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
comment:
|
comment:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- uses: jwalton/gh-find-current-pr@v1
|
- uses: jwalton/gh-find-current-pr@v1
|
||||||
id: finder
|
id: finder
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
|
|
@ -3,12 +3,12 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run all
|
- run: npm run all
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue