-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.18 KB
/
synchronise-files.yaml
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
on:
push:
branches:
- main
workflow_dispatch:
name: Sync
jobs:
sync:
name: 🔄 Synchronise AEF-DDF files
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout Repository
uses: actions/checkout@master
- name: Run GitHub File Sync
uses: RasmusSkytte/repo-file-sync-action@master
with:
GH_PAT: ${{ secrets.GH_PAT }}
CONFIG_PATH: .github/sync.yaml
COMMIT_PREFIX: "chore: "
PR_BODY: Automatically synchronise AEF-DDF files between repositories
COMMIT_EACH_FILE: false
sync-reverse:
if: ${{ github.repository != 'ssi-dk/AEF-DDF' }}
name: 🔄 Synchronise AEF-DDF files back to AEF-DDF
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout Repository
uses: actions/checkout@master
- name: Run GitHub File Sync
uses: RasmusSkytte/repo-file-sync-action@master
with:
GH_PAT: ${{ secrets.GH_PAT }}
CONFIG_PATH: .github/sync_reverse.yaml
COMMIT_PREFIX: "chore: "
PR_BODY: Automatically synchronise AEF-DDF files between repositories
COMMIT_EACH_FILE: false