name: Danger on: pull_request: branches: [ 'master' ] workflow_dispatch: jobs: danger: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Use Node.js 10.x uses: actions/setup-node@v1 with: node-version: 10.x - name: install yarn run: npm install -g yarn - name: yarn install run: | yarn install --frozen-lockfile - name: Danger run: yarn danger ci env: GITHUB_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}