Skip to content

Commit

Permalink
build updates (#256)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
jawnsy authored Mar 21, 2021
1 parent 9632fd5 commit 832d4d1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/comment_on_pull_request.yml
Original file line number Diff line number Diff line change
@@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/comment_on_push.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 832d4d1

Please sign in to comment.