Skip to content

Commit 067c20c

Browse files
committed
Add another file under resources
1 parent de5abbf commit 067c20c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/learn-github-actions.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name: sync-subtree-to-another-repo
77
on:
88
push:
99
paths:
10-
- 'resources/*'
10+
- 'resources/**'
1111
branches:
1212
- 'github-workflows-commit-to-another-repo'
1313
tags:
@@ -51,3 +51,11 @@ jobs:
5151
- run: ls -hal
5252
working-directory: '${{ github.workspace }}/hello-octapus-public'
5353
- 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'

resources/foobar/bye.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Bye

0 commit comments

Comments
 (0)