mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2024-12-22 16:16:09 -07:00
Merge branch 'main' of github.com:cpina/github-action-push-to-another-repository into main
This commit is contained in:
commit
418e6e7a36
|
@ -1,4 +1,4 @@
|
||||||
# github-action-push-to-another-repository-directory
|
# github-action-push-to-another-repository
|
||||||
|
|
||||||
When to use this GitHub Action? It is useful in case that you have a GitHub repository with a a directory that you want to push to another GitHub repository using GitHub Actions (automated on push, for example). It is also useful if using GitHub Actions you generate certain files that you want to push to another GitHub repository.
|
When to use this GitHub Action? It is useful in case that you have a GitHub repository with a a directory that you want to push to another GitHub repository using GitHub Actions (automated on push, for example). It is also useful if using GitHub Actions you generate certain files that you want to push to another GitHub repository.
|
||||||
|
|
||||||
|
@ -37,11 +37,11 @@ The branch name for the destination repository. It defaults to `main`.
|
||||||
### `commit-message` (argument) [optional]
|
### `commit-message` (argument) [optional]
|
||||||
The commit message to be used in the output repository. Optional and defaults to "Update from $REPOSITORY_URL@commit".
|
The commit message to be used in the output repository. Optional and defaults to "Update from $REPOSITORY_URL@commit".
|
||||||
|
|
||||||
|
The string `ORIGIN_COMMIT` is replaced by `$REPOSITORY_URL@commit`.
|
||||||
|
|
||||||
### `target-directory` (argument) [optional]
|
### `target-directory` (argument) [optional]
|
||||||
The directory to wipe and replace in the target repository. Defaults to wiping the entire repository
|
The directory to wipe and replace in the target repository. Defaults to wiping the entire repository
|
||||||
|
|
||||||
The string `ORIGIN_COMMIT` is replaced by `$REPOSITORY_URL@commit`.
|
|
||||||
|
|
||||||
### `API_TOKEN_GITHUB` (environment)
|
### `API_TOKEN_GITHUB` (environment)
|
||||||
E.g.:
|
E.g.:
|
||||||
`API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}`
|
`API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user