You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,15 @@ There are two example repositories:
8
8
*[Repository 1](https://github.com/cpina/push-to-another-repository-deploy-keys-example): using SSH deploy keys (recommended)
9
9
*[Repository 2](https://github.com/cpina/push-to-another-repository-example): using a personal access token setup
10
10
11
-
On a push of the repositories (thanks to the file [.github/workflows/ci.yml](https://github.com/cpina/push-to-another-repository-deploy-keys-example/tree/main/.github/workflows) it uses Pandoc to read the MarkDown file [main.md](https://github.com/cpina/push-to-another-repository-deploy-ssh-example/blob/main/main.md) (via [this step](https://github.com/cpina/push-to-another-repository-example/blob/main/.github/workflows/ci.yml#L19) and the example [build.sh](https://github.com/cpina/push-to-another-repository-deploy-keys-example/blob/main/build.sh). build.sh generates the output/ directory configurable via [source-directory](https://github.com/cpina/push-to-another-repository-deploy-keys-example/blob/main/.github/workflows/ci.yml#L27) appears in the [output repository](https://github.com/cpina/push-to-another-repository-output).
11
+
On a push of the repositories (thanks to the file [.github/workflows/ci.yml](https://github.com/cpina/push-to-another-repository-deploy-keys-example/tree/main/.github/workflows) it uses Pandoc to read the MarkDown file [main.md](https://github.com/cpina/push-to-another-repository-deploy-ssh-example/blob/main/main.md) (via [this step](https://github.com/cpina/push-to-another-repository-example/blob/main/.github/workflows/ci.yml#L19) and the example [build.sh](https://github.com/cpina/push-to-another-repository-deploy-keys-example/blob/main/build.sh). build.sh generates the output/ directory configurable via [source-directories](https://github.com/meese-enterprises/push-to-another-repository-deploy-keys-example/blob/main/.github/workflows/ci.yml#L27) appears in the [output repository](https://github.com/cpina/push-to-another-repository-output).
12
12
13
13
Please bear in mind: files in the target repository's specified directory are deleted. This is to make sure that it contains only the files generated on the last run.
14
14
15
15
There are different variables to set up the behaviour:
16
16
17
17
## Inputs
18
-
### `source-directory` (argument)
19
-
From the repository that this Git Action is executed the directory that contains the files to be pushed into the repository.
18
+
### `source-directories` (argument)
19
+
From the repository that this Git Action is executed the directories that contains the files to be pushed into the repository.
20
20
21
21
### `destination-github-username` (argument)
22
22
For the repository `https://github.com/cpina/push-to-another-repository-output` is `cpina`.
@@ -112,7 +112,7 @@ Then make the token available to the Github Action following the steps:
echo"::error::(Note that if they exist USER_NAME and API_TOKEN is redacted by GitHub)"
79
-
echo"::error::Please verify that the target repository exist AND that it contains the destination branch name, and is accesible by the API_TOKEN_GITHUB OR SSH_DEPLOY_KEY"
78
+
echo""
79
+
echo"[-] Could not clone the destination repository. Command:"
echo"[-] (Note that if they exist, USER_NAME and API_TOKEN are redacted by GitHub)"
82
+
echo"[-] Please verify that the target repository exist AND that it contains the destination branch name, and is accesible by the API_TOKEN_GITHUB OR SSH_DEPLOY_KEY"
80
83
exit 1
81
84
}
82
85
}
83
86
87
+
echo""
88
+
echo"[+] Listing the contents of the clone directory:"
# Related to https://github.com/cpina/github-action-push-to-another-repository/issues/64 and https://github.com/cpina/github-action-push-to-another-repository/issues/64
145
-
# TODO: review before releasing it as a version
149
+
# Related to https://github.com/cpina/github-action-push-to-another-repository/issues/64
150
+
# and https://github.com/cpina/github-action-push-to-another-repository/issues/64
0 commit comments