Skip to content

Bump word-wrap from 1.2.3 to 1.2.4 #67

Bump word-wrap from 1.2.3 to 1.2.4

Bump word-wrap from 1.2.3 to 1.2.4 #67

Workflow file for this run

name: Danger
on:
pull_request:
branches:
- '**'
issue_comment:
types:
- created
jobs:
danger-for-internal:
name: Danger for internal - Node.js 16
if: |
github.event_name == 'pull_request'
&& github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
- name: Clone the source for the event
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Danger JS
run: npx danger ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
danger-for-external:
name: Danger for external - Node.js 16
if: |
github.event_name == 'issue_comment' && github.event.action == 'created'
&& github.event.issue.pull_request != null
&& startsWith(github.event.comment.body, '/danger')
# && github.event.pull_request.head.repo.full_name == !github.repository
runs-on: ubuntu-latest
steps:
- name: Clone the action source
uses: actions/checkout@v3
- name: Check repository permission for user
uses: ./
with:
required-permission: write
reaction-permitted: rocket
comment-not-permitted: Sorry, you don't have enough permission to execute `/danger`...
- name: Clone the PR source
uses: actions/checkout@v3
with:
ref: refs/pull/${{ github.event.issue.number }}/head
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Danger JS
run: npx danger ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}