Skip to content

chore: create jira with failed snapshot tests #5

chore: create jira with failed snapshot tests

chore: create jira with failed snapshot tests #5

Workflow file for this run

---
name: Update E2E Tests Snapshots
on:
pull_request:
jobs:
report:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Find JIRA ticket
id: find
uses: mongodb/apix-action/find-jira@3024080388613583e3bd119bfb1ab4b4dbf43c42
with:
token: ${{ secrets.JIRA_API_TOKEN }}
jql: project = CLOUDP AND status NOT IN (Closed, Resolved) AND summary ~ "Failed to update test snapshots"
- name: Comment JIRA ticket
if: steps.find.outputs.found == 'true'
uses: mongodb/apix-action/comment-jira@add_comment_jira_action
with:
token: ${{ secrets.JIRA_API_TOKEN }}
issue-key: ${{ steps.find.outputs.issue-key }}
comment: |
Another attempt to update test snapshots failed.
Check github actions logs for more details at ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
- name: Create JIRA ticket
uses: mongodb/apix-action/create-jira@3024080388613583e3bd119bfb1ab4b4dbf43c42
id: create
if: steps.find.outputs.found == 'false'
with:
token: ${{ secrets.JIRA_API_TOKEN }}
project-key: CLOUDP
summary: "[AtlasCLI] Failed to update test snapshots"
issuetype: Bug
description: |
Failed to update test snapshots
Check github actions logs for more details at ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
components: AtlasCLI
assignee: ${{ secrets.ASSIGNEE_JIRA_TICKET }}
extra-data: |
{
"fields": {
"fixVersions": [
{
"id": "41805"
}
],
"customfield_12751": [
{
"id": "22223"
}
],
"customfield_10257": {
"id": "11861"
}
}