Skip to content

Commit

Permalink
Add another file under resources
Browse files Browse the repository at this point in the history
  • Loading branch information
drmalex07 committed Sep 6, 2024
1 parent de5abbf commit c8962cc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/learn-github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: sync-subtree-to-another-repo
on:
push:
paths:
- 'resources/*'
- 'resources/**'
branches:
- 'github-workflows-commit-to-another-repo'
tags:
Expand Down Expand Up @@ -51,3 +51,16 @@ jobs:
- run: ls -hal
working-directory: '${{ github.workspace }}/hello-octapus-public'
- run: rsync --version
- run: >-
rsync -avhi --delete --exclude '.gitkeep' ${{ github.workspace }}/hello-octapus/resources/ ${{ github.workspace }}/hello-octapus-public/resources/
- run: |-
git status
git remote -v
git config user.name '${{ github.actor }}'
git config --global user.email '${{ github.actor }}@users.noreply.github.com'
working-directory: '${{ github.workspace }}/hello-octapus-public'
- run: |-
git add resources && git status
git commit -am 'Sync `resources/` folder from ${{ github.repository }}'
git push origin master
working-directory: '${{ github.workspace }}/hello-octapus-public'
1 change: 1 addition & 0 deletions resources/foobar/bye.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bye

0 comments on commit c8962cc

Please sign in to comment.