-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] terraform-devex-repos automation
- Loading branch information
1 parent
8ac896f
commit 6a1bb2c
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
on: | ||
issues: | ||
types: [labeled] | ||
|
||
name: Jira Sync | ||
|
||
jobs: | ||
sync: | ||
runs-on: ubuntu-latest | ||
name: Jira sync | ||
steps: | ||
|
||
- name: Login | ||
uses: atlassian/gajira-login@45fd029b9f1d6d8926c6f04175aa80c0e42c9026 # v3.0.1 | ||
if: github.event.label.name == 'tf-devex-triage' | ||
env: | ||
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} | ||
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} | ||
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} | ||
- name: Search for existing issue | ||
id: search | ||
if: github.event.label.name == 'tf-devex-triage' | ||
uses: tomhjp/gh-action-jira-search@04700b457f317c3e341ce90da5a3ff4ce058f2fa # v0.2.2 | ||
with: | ||
jql: 'project="TFECO" and "Team (R&D)[Labels]"="TF-DevEx" and description ~ "${{ github.event.issue.html_url || github.event.pull_request.html_url }}" and labels in (Github)' | ||
|
||
- name: Create task in DevEx board | ||
if: github.event.label.name == 'tf-devex-triage' && !steps.search.outputs.issue | ||
uses: atlassian/gajira-create@59e177c4f6451399df5b4911c2211104f171e669 # v3.0.1 | ||
with: | ||
project: TFECO | ||
issuetype: "Task" | ||
summary: "[GH] ${{ github.event.issue.title || github.event.pull_request.title }}" | ||
description: "${{ github.event.issue.html_url || github.event.pull_request.html_url }} \n Synced by Github Actions, tagged by ${{ github.actor }}" | ||
# customfield_10091 is Team (R&D) | ||
fields: '{"customfield_10091": ["TF-DevEx"], "labels": ["Github"]}' |