Skip to content

Commit

Permalink
Use Jira to create ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel committed Mar 14, 2024
1 parent e849c52 commit d494bcc
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/run-htmltest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,29 @@ jobs:
name: htmltest-report
path: tmp/.htmltest/htmltest.log
retention-days: 7 # Default is 90 days
- name: Create issue about failure
- name: Login to Jira
if: failure()
uses: JasonEtco/[email protected]
uses: atlassian/gajira-login@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
- name: Create Jira ticket
if: failure()
id: create
uses: atlassian/gajira-create@v3
with:
filename: .github/failed-action-issue-template.md
project: DOCS
issuetype: Bug
summary: Broken link detected
description: For more info see https://github.com/viamrobotics/docs/actions/runs/{{ env.GITHUB_RUN_ID }}.
- name: Log created issue
run: echo "Issue ${{ steps.create.outputs.issue }} was created"

- name: Create issue about failure
if: failure()
uses: JasonEtco/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
filename: .github/failed-action-issue-template.md

0 comments on commit d494bcc

Please sign in to comment.