generated from austenstone/action-typescript
-
-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (34 loc) · 942 Bytes
/
test-jira.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
name: Test Jira
permissions: {}
on:
push:
pull_request:
workflow_dispatch:
jobs:
seat-count-jira:
runs-on: ubuntu-latest
steps:
- name: Get Seats Remaining
uses: austenstone/seat-count-action@main
id: seats
with:
org: octodemo
github-token: ${{ secrets.TOKEN }}
- 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: atlassian/gajira-create@v3
with:
project: SUP
issuetype: Task
summary: |
Only ${{ steps.seats.outputs.remaining }} GitHub seats remaining!
description: |
You are running out of GitHub seats!
- name: Log created issue
run: echo "Issue ${{ steps.create.outputs.issue }} was created"