Skip to content

Commit 80fcdc4

Browse files
authored
PM-289: Update Jira sync calling workflow to consolidated view (#441)
## Summary - Consolidate the Jira sync calling workflow from multiple separate jobs into a single job calling `main_pr_events_jira_sync.yml` - All logic remains in the backend workflows in `github-automation.git` - Makes CI actions in a PR more readable and workflow execution faster Jira: PM-289
2 parents b38a5bb + 8e05db5 commit 80fcdc4

1 file changed

Lines changed: 4 additions & 27 deletions

File tree

.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)