File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ name: sync-subtree-to-another-repo
7
7
on :
8
8
push :
9
9
paths :
10
- - ' resources/*'
10
+ - ' resources/** '
11
11
branches :
12
12
- ' github-workflows-commit-to-another-repo'
13
13
tags :
51
51
- run : ls -hal
52
52
working-directory : ' ${{ github.workspace }}/hello-octapus-public'
53
53
- run : rsync --version
54
+ - run : >-
55
+ rsync -avhi --delete --exclude '.gitkeep' ${{ github.workspace }}/hello-octapus/resources/ ${{ github.workspace }}/hello-octapus-public/resources/
56
+ - run : |-
57
+ git status
58
+ git config user.name '${{ github.actor }}'
59
+ git config --global user.email '${{ github.actor }}@users.noreply.github.com'
60
+ working-directory: '${{ github.workspace }}/hello-octapus-public'
61
+ - run : |-
62
+ git add resources && git status
63
+ git commit -am 'Sync `resources/` folder from ${{ github.repository }}'
64
+ working-directory: '${{ github.workspace }}/hello-octapus-public'
Original file line number Diff line number Diff line change
1
+ Bye
You can’t perform that action at this time.
0 commit comments