forked from scylladb/cpp-rs-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1.13 KB
/
Copy pathmilestone-sync.yml
File metadata and controls
38 lines (34 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Milestone Sync
on:
workflow_dispatch:
inputs:
milestone:
description: GitHub milestone number or exact title
required: true
type: string
milestone:
types: [created, edited, opened, closed]
issues:
types: [opened, closed, reopened, milestoned, demilestoned]
permissions:
contents: read
issues: write
pull-requests: read
jobs:
sync-manual:
if: github.event_name == 'workflow_dispatch'
uses: scylladb-actions/workflows/.github/workflows/milestone-sync-reusable.yml@main
with:
milestone: ${{ inputs.milestone }}
config-path: milestone-sync/config.yaml
secrets:
USER_AND_KEY_FOR_JIRA_AUTOMATION: ${{ secrets.USER_AND_KEY_FOR_JIRA_AUTOMATION }}
sync-automatic:
if: github.event_name != 'workflow_dispatch'
uses: scylladb-actions/workflows/.github/workflows/milestone-sync-reusable.yml@main
with:
config-path: milestone-sync/config.yaml
github-event-name: ${{ github.event_name }}
github-event-payload: ${{ toJson(github.event) }}
secrets:
USER_AND_KEY_FOR_JIRA_AUTOMATION: ${{ secrets.USER_AND_KEY_FOR_JIRA_AUTOMATION }}