Skip to content

Commit d2e3fef

Browse files
dani-tweigLorak-mmk
authored andcommitted
PM-285: Consolidate Jira sync workflow to single job calling main_pr_events_jira_sync
1 parent cc78c22 commit d2e3fef

File tree

1 file changed

+4
-27
lines changed

1 file changed

+4
-27
lines changed

.github/workflows/call_jira_sync.yml

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,9 @@ permissions:
1010
issues: write
1111

1212
jobs:
13-
jira-sync-pr-opened:
14-
if: github.event.action == 'opened' || github.event.action == 'edited'
15-
uses: scylladb/github-automation/.github/workflows/main_jira_sync_pr_opened.yml@main
16-
secrets:
17-
caller_jira_auth: ${{ secrets.USER_AND_KEY_FOR_JIRA_AUTOMATION }}
18-
19-
jira-sync-in-review:
20-
if: github.event.action == 'ready_for_review' || github.event.action == 'review_requested'
21-
uses: scylladb/github-automation/.github/workflows/main_jira_sync_in_review.yml@main
22-
secrets:
23-
caller_jira_auth: ${{ secrets.USER_AND_KEY_FOR_JIRA_AUTOMATION }}
24-
25-
jira-sync-add-label:
26-
if: github.event.action == 'labeled'
27-
uses: scylladb/github-automation/.github/workflows/main_jira_sync_add_label.yml@main
28-
secrets:
29-
caller_jira_auth: ${{ secrets.USER_AND_KEY_FOR_JIRA_AUTOMATION }}
30-
31-
jira-sync-remove-label:
32-
if: github.event.action == 'unlabeled'
33-
uses: scylladb/github-automation/.github/workflows/main_jira_sync_remove_label.yml@main
34-
secrets:
35-
caller_jira_auth: ${{ secrets.USER_AND_KEY_FOR_JIRA_AUTOMATION }}
36-
37-
jira-sync-pr-closed:
38-
if: github.event.action == 'closed'
39-
uses: scylladb/github-automation/.github/workflows/main_jira_sync_pr_closed.yml@main
13+
jira-sync:
14+
uses: scylladb/github-automation/.github/workflows/main_pr_events_jira_sync.yml@main
15+
with:
16+
caller_action: ${{ github.event.action }}
4017
secrets:
4118
caller_jira_auth: ${{ secrets.USER_AND_KEY_FOR_JIRA_AUTOMATION }}

0 commit comments

Comments
 (0)