File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-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
+ working-directory: '${{ github.workspace }}/hello-octapus-public'
59
+ - run : >-
60
+ git add resources/ && git status
61
+ 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