-
Notifications
You must be signed in to change notification settings - Fork 84
27 lines (24 loc) · 962 Bytes
/
csh-sync-caller.yaml
File metadata and controls
27 lines (24 loc) · 962 Bytes
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
# CSH Sync Caller
#
# Add this file to any 2i2c-org repo that should participate in
# Community Success Hours tracking.
#
# Place at: .github/workflows/csh-sync-caller.yml
#
# Prerequisites:
# - The org-level secrets ASANA_ACCESS_TOKEN and CSH_SYNC_PAT must be set
# - The repo must have a "CSH" label created
# - The 2i2c-org/csh-sync repo must exist with the reusable workflow
name: CSH Sync
on:
issues:
types: [labeled, edited, assigned, unassigned, milestoned, demilestoned, closed, reopened]
jobs:
sync:
# For 'labeled' events: only fire when the CSH label is the one being added.
# For all other events: fire if the issue already carries the CSH label.
if: >-
(github.event.action == 'labeled' && github.event.label.name == 'CSH')
|| (github.event.action != 'labeled' && contains(toJson(github.event.issue.labels.*.name), 'CSH'))
uses: 2i2c-org/csh-sync/.github/workflows/csh-sync.yml@main
secrets: inherit