Skip to content

[skip changelog] Fix indentation of Jira grooming workflow #853

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 34 additions & 34 deletions .github/workflows/jira-issue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,41 +8,41 @@ jobs:
create-issue:
runs-on: ubuntu-latest

env:
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
env:
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}

steps:
- name: Installs Jira CLI
uses: atlassian/gajira-cli@master
with:
version: 1.0.23
steps:
- name: Installs Jira CLI
uses: atlassian/gajira-cli@master
with:
version: 1.0.23

- name: Create issue
run: |
jira create \
--noedit \
-e ${{ secrets.JIRA_BASE_URL }} \
-u ${{ secrets.JIRA_USER_EMAIL }} \
-p ${{ secrets.JIRA_PROJECT_CODE }} \
-i Task \
-o summary="${{ github.event.issues.issue.title }}" \
-o description="${{ github.event.issues.issue.body }}\n${{ github.event.issues.issue.html_url }}" \
>> output
- name: Create issue
run: |
jira create \
--noedit \
-e ${{ secrets.JIRA_BASE_URL }} \
-u ${{ secrets.JIRA_USER_EMAIL }} \
-p ${{ secrets.JIRA_PROJECT_CODE }} \
-i Task \
-o summary="${{ github.event.issues.issue.title }}" \
-o description="${{ github.event.issues.issue.body }}\n${{ github.event.issues.issue.html_url }}" \
>> output

- name: Set label on Jira issue
run: |
jira label add
$(cat output | awk '{split($0,a," "); print a[2]}')
grooming arduino-cli
- name: Set label on Jira issue
run: |
jira label add
$(cat output | awk '{split($0,a," "); print a[2]}')
grooming arduino-cli

- name: Set label on Github issue
uses: actions/github-script@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['tracked']
})
- name: Set label on Github issue
uses: actions/github-script@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['tracked']
})