Skip to content

Create devstack DB dumps with a Github action #251

Create devstack DB dumps with a Github action

Create devstack DB dumps with a Github action #251

Workflow file for this run

name: Escalate to pSRE
on:
issues:
types: labeled
jobs:
file-jira:
runs-on: ubuntu-latest
if: ${{ github.event.label.name == 'escalate-to-psre' }}
steps:
- name: Login
uses: atlassian/gajira-login@v3
env:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: 'productivitysysops@2u.com'
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
- name: Create ticket
uses: atlassian/gajira-create@v3
id: jiracreate
with:
project: GSRE
issuetype: Story
summary: ${{ github.event.issue.title }}
description: |
${{ github.event.issue.body }}
The original issue is at ${{ github.event.issue.html_url }}
fields: '{ "labels": ["esre-request"] }'
- name: Comment with JIRA issue link
uses: peter-evans/create-or-update-comment@v2
with:
body: This is now https://2u-internal.atlassian.net/browse/${{ steps.jiracreate.outputs.issue }}
issue-number: ${{ github.event.issue.number }}