generated from varunsridharan/template-github-workflow-sync
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (43 loc) · 1.24 KB
/
workflow-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
name: Workflow Sync
on:
push:
branches:
- master
env:
# Old repos:
# levin-riegner/candid-flutter
# levin-riegner/avenew-flutter
# levin-riegner/spireworks-ios
# levin-riegner/warm-flutter
# levin-riegner/lodge-flutter
# Repositories to Sync
REPOSITORIES: |
Global-Poverty-Project/Global-Citizen-Mobile-Flutter
# Files to Sync
WORKFLOW_FILES: |
internal.workflow.yml
release.workflow.yml
test.workflow.yml
changelog.workflow.yml
./.github/config/changelog_pullrequest.json
# Run the Sync Action without pushing to repos
DRY_RUN: false
# Commit files via Pull Request
PULL_REQUEST: true
AUTO_CREATE_NEW_BRANCH: true
SKIP_CI: true
jobs:
github_workflow_sync:
runs-on: ubuntu-latest
steps:
- name: Fetching Local Repository
uses: actions/checkout@v3
- name: Running Workflow Sync
uses: varunsridharan/[email protected]
with:
DRY_RUN: ${{ env.DRY_RUN }}
REPOSITORIES: ${{ env.REPOSITORIES }}
WORKFLOW_FILES: ${{ env.WORKFLOW_FILES }}
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
PULL_REQUEST: ${{ env.PULL_REQUEST}}
AUTO_CREATE_NEW_BRANCH: ${{ env.AUTO_CREATE_NEW_BRANCH }}