forked from net-engine/github-repository-sync-action
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
14 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,12 @@ jobs: | |
test: # make sure the action works on a clean machine without building | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: main | ||
- uses: ./ | ||
with: | ||
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
target_repo_url: [email protected]:ayr-ton/git-deploy-action-test.git | ||
target_branch: gh-pages-test | ||
target_branch: main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,16 +16,19 @@ Be sure to run the [`actions/checkout`](https://github.com/actions/checkout) act | |
this action so that the git repository is initialized. | ||
|
||
```yaml | ||
# File: .github/workflows/mirror.yml | ||
- uses: ayr-ton/git-deploy-action@v1 | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: main | ||
- uses: ayr-ton/[email protected] | ||
with: | ||
# The SSH private key for SSH connection to the target repository. | ||
# We strongly recommend saving this value as a GitHub Secret and using deploy | ||
# keys within the target repository | ||
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
# The SSH-based URL to the target repository | ||
target_repo_url: [email protected]:ayr-ton/git-deploy-action-test.git | ||
# The branch to push to the target repository, defaults to the current branch | ||
# The branch to push to the target repository, mandatory | ||
target_branch: main | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters