generated from austenstone/action-typescript
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
jira.yml
33 lines (32 loc) · 934 Bytes
/
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
name: Seat Count Jira Notification
on:
schedule:
- cron: 0 0 * * *
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"