Skip to content

Commit

Permalink
fix: update CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayakkulkarni committed Aug 19, 2021
1 parent e5e66ba commit b1fecd0
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,32 @@ on:
- main
- next

permissions:
checks: write
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
ci:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
node: [16]

steps:
- name: Checkout latest code
uses: actions/checkout@master
- name: Check out repository (push)
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request_target' || github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' }}
uses: actions/checkout@v2

- name: Check out repository (pull_request_target)
if: ${{ github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]' }}
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}

Expand Down

0 comments on commit b1fecd0

Please sign in to comment.