diff --git a/.github/workflows/run-htmltest.yml b/.github/workflows/run-htmltest.yml index 51ff4ed34c..e3d066fa0a 100644 --- a/.github/workflows/run-htmltest.yml +++ b/.github/workflows/run-htmltest.yml @@ -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/create-an-issue@v2.5.0 + 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 \ No newline at end of file + 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/create-an-issue@v2.5.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + filename: .github/failed-action-issue-template.md