1
- name : Update Site List
1
+ name : Update Site List
2
2
3
3
# Trigger the workflow when changes are pushed to the main branch
4
4
# and the changes include the sherlock/resources/data.json file
5
5
on :
6
6
push :
7
7
branches :
8
- - master
8
+ - master
9
9
paths :
10
10
- sherlock/resources/data.json
11
11
@@ -26,24 +26,21 @@ jobs:
26
26
- name : Install Python
27
27
uses : actions/setup-python@v5
28
28
with :
29
- python-version : ' 3.x'
29
+ python-version : ' 3.x'
30
30
31
31
# Execute the site_list.py Python script
32
32
- name : Execute site-list.py
33
33
run : python devel/site-list.py
34
34
35
- # Commit any changes made by the script
36
- - name : Commit files
37
- run : |
38
- git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
39
- git config --local user.name "github-actions[bot]"
40
- if ! git diff --exit-code; then
41
- git commit -a -m "Updated Site List"
42
- fi
43
-
44
- # Push the changes to the remote repository
45
- - name : Push changes
46
- uses : ad-m/github-push-action@master
35
+ - name : Pushes to another repository
36
+ uses : cpina/github-action-push-to-another-repository@main
37
+ env :
38
+ SSH_DEPLOY_KEY : ${{ secrets.SSH_DEPLOY_KEY }}
39
+ API_TOKEN_GITHUB : ${{ secrets.API_TOKEN_GITHUB }}
47
40
with :
48
- github_token : ${{ secrets.GITHUB_TOKEN }}
49
- branch : ${{ github.ref }}
41
+ source-directory : ' output'
42
+ destination-github-username : ' sherlock-project'
43
+ commit-message : " Updated site list"
44
+ destination-repository-name : ' sherlockproject.xyz'
45
+
46
+ target-branch : master
0 commit comments