-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (28 loc) · 809 Bytes
/
sync.yml
File metadata and controls
31 lines (28 loc) · 809 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
28
29
30
31
on:
workflow_dispatch:
schedule:
- cron: 21 8 * * *
workflow_run:
workflows: ["5whys-Ad-list-processing"]
types:
- completed
name: ⏫ Sync rule files
jobs:
copy-file:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
# Copy the 'post' folder
- name: Push posts
uses: dmnemec/copy_file_to_another_repo_action@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source_file: 'rules/' # Folder to copy
destination_repo: '${{ secrets.PATH }}' # Target repo
destination_folder: '/' # Folder where to copy it
user_email: '${{ secrets.EMAIL1 }}'
user_name: '${{ secrets.NAME1 }}'
commit_message: "SYNC FROM SOURCE"
git_server: 'github.com'