Skip to content

Commit

Permalink
Use Jira to create ticket (#2660)
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel authored Mar 14, 2024
1 parent e849c52 commit ded631b
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions .github/workflows/run-htmltest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@
#
name: run-htmltest-external
on:
schedule:
# 10am UTC on weekdays
- cron: '0 10 * * 1,2,3,4,5'
pull_request_target:
branches: [ main ]
types: [ labeled, synchronize ]
# on:
# schedule:
# # 10am UTC on weekdays
# - cron: '0 10 * * 1,2,3,4,5'
jobs:
htmltest:
runs-on: ubuntu-large
Expand Down Expand Up @@ -44,10 +48,22 @@ 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 Jira issue
if: failure()
run: echo "Issue ${{ steps.create.outputs.issue }} was created"

0 comments on commit ded631b

Please sign in to comment.