mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2025-12-19 06:25:50 +00:00
chore: build updates
* 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
1143f51a44
commit
5114ea9463
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