-
Notifications
You must be signed in to change notification settings - Fork 33
34 lines (28 loc) · 992 Bytes
/
on-push.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
33
34
on: push
name: Test Create Issue
jobs:
test-create-issue:
name: Create Issue
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- run: yarn install
- run: yarn test
- name: Login
uses: atlassian/gajira-login@v3
env:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
- name: Create
id: create
uses: ./
with:
project: CREATE
issuetype: Epic
summary: Do the thing for ${{ github.repository }}
description: Compare branch|${{ github.event.compare }} # https://docs.github.com/en/free-pro-team@latest/developers/webhooks-and-events/webhook-events-and-payloads
# fields: '{"customfield_10171": "field value from actions. Please do not remove"}'
- name: Log created issue
run: echo "Issue ${{ steps.create.outputs.issue }} was created"