Skip to content

Commit 76e6a5e

Browse files
authored
[skip changelog] Fix indentation of Jira grooming workflow (#853)
1 parent 54c7b1f commit 76e6a5e

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

.github/workflows/jira-issue.yaml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -8,41 +8,41 @@ jobs:
88
create-issue:
99
runs-on: ubuntu-latest
1010

11-
env:
12-
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
11+
env:
12+
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
1313

14-
steps:
15-
- name: Installs Jira CLI
16-
uses: atlassian/gajira-cli@master
17-
with:
18-
version: 1.0.23
14+
steps:
15+
- name: Installs Jira CLI
16+
uses: atlassian/gajira-cli@master
17+
with:
18+
version: 1.0.23
1919

20-
- name: Create issue
21-
run: |
22-
jira create \
23-
--noedit \
24-
-e ${{ secrets.JIRA_BASE_URL }} \
25-
-u ${{ secrets.JIRA_USER_EMAIL }} \
26-
-p ${{ secrets.JIRA_PROJECT_CODE }} \
27-
-i Task \
28-
-o summary="${{ github.event.issues.issue.title }}" \
29-
-o description="${{ github.event.issues.issue.body }}\n${{ github.event.issues.issue.html_url }}" \
30-
>> output
20+
- name: Create issue
21+
run: |
22+
jira create \
23+
--noedit \
24+
-e ${{ secrets.JIRA_BASE_URL }} \
25+
-u ${{ secrets.JIRA_USER_EMAIL }} \
26+
-p ${{ secrets.JIRA_PROJECT_CODE }} \
27+
-i Task \
28+
-o summary="${{ github.event.issues.issue.title }}" \
29+
-o description="${{ github.event.issues.issue.body }}\n${{ github.event.issues.issue.html_url }}" \
30+
>> output
3131
32-
- name: Set label on Jira issue
33-
run: |
34-
jira label add
35-
$(cat output | awk '{split($0,a," "); print a[2]}')
36-
grooming arduino-cli
32+
- name: Set label on Jira issue
33+
run: |
34+
jira label add
35+
$(cat output | awk '{split($0,a," "); print a[2]}')
36+
grooming arduino-cli
3737
38-
- name: Set label on Github issue
39-
uses: actions/github-script@v2
40-
with:
41-
github-token: ${{ secrets.GITHUB_TOKEN }}
42-
script: |
43-
github.issues.addLabels({
44-
issue_number: context.issue.number,
45-
owner: context.repo.owner,
46-
repo: context.repo.repo,
47-
labels: ['tracked']
48-
})
38+
- name: Set label on Github issue
39+
uses: actions/github-script@v2
40+
with:
41+
github-token: ${{ secrets.GITHUB_TOKEN }}
42+
script: |
43+
github.issues.addLabels({
44+
issue_number: context.issue.number,
45+
owner: context.repo.owner,
46+
repo: context.repo.repo,
47+
labels: ['tracked']
48+
})

0 commit comments

Comments
 (0)