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 1092423
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .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 @@ -44,10 +44,23 @@ jobs:
repository: '${{ github.repository_owner }}/hello-octapus-public'
path: 'hello-octapus-public'
submodules: true
token: ${{ secrets.REPO_READER_ACCESS_TOKEN }}
token: ${{ secrets.REPO_WRITER_ACCESS_TOKEN }}
- run: ls -hal
- run: ls -hal
working-directory: '${{ github.workspace }}/hello-octapus'
- 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 1092423

Please sign in to comment.