-
Notifications
You must be signed in to change notification settings - Fork 15
46 lines (43 loc) · 1.67 KB
/
sync.yml
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
39
40
41
42
43
44
45
46
name: Sync
on:
# NOTE: github.event is push payload:
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#push
push:
branches: [main]
paths:
- sync/ISSUE_TEMPLATE/0_bug.yml
- sync/ISSUE_TEMPLATE/1_feature.yml
- sync/ISSUE_TEMPLATE/epic.yml
- sync/ISSUE_TEMPLATE/2_documentation.yml
- sync/PULL_REQUEST_TEMPLATE/with_releases.md
- sync/PULL_REQUEST_TEMPLATE/without_releases.md
- sync/config.yml # trigger sync if config is modified
- templates/releases/RELEASE.md
- templates/releases/rever.xsh
- templates/releases/TEMPLATE
- .github/workflows/cla.yml
- .github/workflows/issues.yml
- .github/workflows/labels.yml
- .github/workflows/lock.yml
- .github/workflows/project.yml
- .github/workflows/stale.yml
- .github/workflows/sync.yml # trigger sync if workflow is modified
- sync/CODE_OF_CONDUCT.md
- sync/HOW_WE_USE_GITHUB.md
# NOTE: github.event is workflow_dispatch payload:
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch
workflow_dispatch:
jobs:
sync:
if: '!github.event.repository.fork'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: BetaHuhn/repo-file-sync-action@8b92be3375cf1d1b0cd579af488a9255572e4619 # v1.21.1
with:
GH_PAT: ${{ secrets.SYNC_TOKEN }}
PR_LABELS: false
CONFIG_PATH: sync/config.yml
COMMIT_EACH_FILE: false
GIT_USERNAME: Conda Bot
GIT_EMAIL: [email protected]