Skip to content

Commit

Permalink
Yet another update on resources
Browse files Browse the repository at this point in the history
  • Loading branch information
drmalex07 committed Sep 6, 2024
1 parent ac5eee1 commit ffa6600
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/learn-github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
helloworld:
runs-on: ubuntu-22.04
env:
FOO: bar
TARGET_REPO_NAME: 'hello-octapus-public'
TARGET_REPO: '${{ github.repository_owner }}/hello-octapus-public'
steps:
- run: git version
- run: pwd
Expand All @@ -41,15 +42,15 @@ jobs:
token: ${{ secrets.REPO_READER_ACCESS_TOKEN }}
- uses: actions/checkout@v3
with:
repository: '${{ github.repository_owner }}/hello-octapus-public'
path: 'hello-octapus-public'
repository: '${{ env.TARGET_REPO }}'
path: '${{ env.TARGET_REPO_NAME }}'
submodules: true
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'
working-directory: '${{ github.workspace }}/${{ env.TARGET_REPO_NAME }}'
- run: rsync --version
- run: >-
rsync -avhi --delete --exclude '.gitkeep' ${{ github.workspace }}/hello-octapus/resources/ ${{ github.workspace }}/hello-octapus-public/resources/
Expand All @@ -58,9 +59,9 @@ jobs:
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'
working-directory: '${{ github.workspace }}/${{ env.TARGET_REPO_NAME }}'
- 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'
working-directory: '${{ github.workspace }}/${{ env.TARGET_REPO_NAME }}'
2 changes: 1 addition & 1 deletion resources/hello.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Hello (Github Actions) World
Hello (Github Actions) World!!

0 comments on commit ffa6600

Please sign in to comment.