-
Notifications
You must be signed in to change notification settings - Fork 97
41 lines (33 loc) · 1000 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
35
36
37
38
39
40
41
on: push
name: Test Find Issue Key
jobs:
test-find-issue-key:
name: Find Issue Key
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- 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: Find Issue Key
uses: ./
with:
from: commits
- name: Find Issue Key
id: find
uses: ./
with:
string: Search is performed in this string. FIND-1 will be found
- name: Find Issue Key
uses: ./
with:
string: ${{ github.event.ref }} will search in branch name
- name: should skip if working, or else error out
if: ${{ steps.find.outputs.issue == '' }}
run: echo "Issue not found" && exit 1
- name: Find issue info
run: echo "Issue ${{ steps.find.outputs.issue }} was found"