-
Notifications
You must be signed in to change notification settings - Fork 18
44 lines (38 loc) · 1.15 KB
/
update-destinations-cs.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
name: update-destinations-cs
on:
push:
paths:
- '_data/destinations.yml'
jobs:
copy-file:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Push to CS repository
uses: dmnemec/copy_file_to_another_repo_action@main
env:
API_TOKEN_GITHUB: ${{ secrets.CS_SYNC_TOKEN }}
with:
source_file: '_data/destinations.yml'
destination_repo: 'csfbk/csfbk.github.io'
destination_folder: '_data/destinations'
rename: 'destinations_st.yml'
user_name: 'csfbk'
user_email: '[email protected]'
- name: Re-checkout on failure
if: ${{ failure() }}
uses: actions/checkout@v2
- name: Re-push on failure
if: ${{ failure() }}
uses: dmnemec/copy_file_to_another_repo_action@main
env:
API_TOKEN_GITHUB: ${{ secrets.CS_SYNC_TOKEN }}
with:
source_file: '_data/destinations.yml'
destination_repo: 'csfbk/csfbk.github.io'
destination_folder: '_data/destinations'
rename: 'destinations_st.yml'
user_name: 'csfbk'
user_email: '[email protected]'
- run: echo "Operation completed."