forked from RampNetwork/clicop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
32 lines (30 loc) · 961 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Kanar
description: "Run DangerJS to check if the PR is has a valid Jira ticket reference"
inputs:
github_token:
description: "Github authentification token"
required: true
jira_token:
description: "Jira authentification token"
required: true
jira_token_user:
description: "User email of Jira user the jira_token belongs to"
required: true
runs:
using: composite
steps:
- uses: actions/[email protected]
- name: Install dependencies
working-directory: ${{ github.action_path }}
shell: bash
env:
NODE_PATH: ${{ github.action_path }}
run: npm install
- name: Run Danger
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
JIRA_TOKEN: ${{ inputs.jira_token }}
JIRA_TOKEN_USER: ${{ inputs.jira_token_user }}
NODE_PATH: ${{ github.action_path }}
run: npx danger -i Kanar --dangerfile ${{ github.action_path }}/dangerfile.js ci