Skip to content

Commit 608c332

Browse files
committed
2021-06-11 08:32:33
1 parent af1d9fe commit 608c332

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,27 @@ jobs:
2525
target_token: "${{ secrets.MIRROR_TARGET_TOKEN_GITLAB }}"
2626
```
2727
28+
```yml
29+
name: "Repository Mirror: GitHub"
30+
31+
on:
32+
- push
33+
34+
jobs:
35+
mirror:
36+
runs-on: ubuntu-latest
37+
name: "Mirror"
38+
steps:
39+
- uses: pkgstore/github-action-mirror@main
40+
with:
41+
source_repo: "https://github.com/${{ github.repository }}.git"
42+
source_user: "${{ secrets.MIRROR_SOURCE_USER_GITHUB }}"
43+
source_token: "${{ secrets.MIRROR_SOURCE_TOKEN_GITHUB }}"
44+
target_repo: "${{ secrets.MIRROR_TARGET_URL_GITHUB }}"
45+
target_user: "${{ secrets.MIRROR_TARGET_USER_GITHUB }}"
46+
target_token: "${{ secrets.MIRROR_TARGET_TOKEN_GITHUB }}"
47+
```
48+
2849
- `source_repo` - source repository URL.
2950
- `source_user` - source user.
3051
- `source_token` - source token.

0 commit comments

Comments
 (0)