mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2025-12-14 12:31:14 +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
|
||||
on:
|
||||
- pull_request
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
comment:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ./
|
||||
with:
|
||||
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
|
||||
on:
|
||||
- push
|
||||
push:
|
||||
|
||||
jobs:
|
||||
comment:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v2
|
||||
- uses: jwalton/gh-find-current-pr@v1
|
||||
id: finder
|
||||
with:
|
||||
|
|
|
|||
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
|
|
@ -3,12 +3,12 @@ on:
|
|||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v2
|
||||
- run: npm ci
|
||||
- run: npm run all
|
||||
|
|
|
|||
Loading…
Reference in a new issue