https://github.com/fabian4/actions-push-anydir-to-anydir
Github Action - push any subdirectory from a repo as a subdirectory in another repo.
https://github.com/fabian4/actions-push-anydir-to-anydir
Last synced: about 2 months ago
JSON representation
Github Action - push any subdirectory from a repo as a subdirectory in another repo.
- Host: GitHub
- URL: https://github.com/fabian4/actions-push-anydir-to-anydir
- Owner: fabian4
- Created: 2023-03-08T12:10:43.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-08T15:09:41.000Z (about 2 years ago)
- Last Synced: 2024-10-30T03:49:23.798Z (7 months ago)
- Language: Shell
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Github Action - push any subdirectory from a repo as a subdirectory in another repo.
## Example usage :
~~~yml
name: Push to publish
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2- name: Push to publish
uses: fabian4/actions-push-anydir-to-anydir@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source-folder: dist/
dest-repo: 'user-name/repo-name'
dest-folder: 'docs'
commit-message: 'sync commit'
excludes: .vuepress/;README.md
~~~---
Thanks to :
- https://github.com/NoahDragon/action-push-repo-as-subdirectory-in-another-repo