1
- [ ![ Tags ] ( https://img.shields.io/github/actions/workflow/status/cssnr/mirror-repository-action/tags .yaml?logo=github&logoColor=white&label=tags )] ( https://github.com/cssnr/mirror-repository-action/actions/workflows/tags .yaml )
1
+ [ ![ Release ] ( https://img.shields.io/github/actions/workflow/status/cssnr/mirror-repository-action/release .yaml?logo=github&logoColor=white&label=release )] ( https://github.com/cssnr/mirror-repository-action/actions/workflows/release .yaml )
2
2
[ ![ Test] ( https://img.shields.io/github/actions/workflow/status/cssnr/mirror-repository-action/test.yaml?logo=github&logoColor=white&label=test )] ( https://github.com/cssnr/mirror-repository-action/actions/workflows/test.yaml )
3
+ [ ![ Lint] ( https://img.shields.io/github/actions/workflow/status/cssnr/mirror-repository-action/lint.yaml?logo=github&logoColor=white&label=lint )] ( https://github.com/cssnr/mirror-repository-action/actions/workflows/lint.yaml )
3
4
[ ![ Quality Gate Status] ( https://sonarcloud.io/api/project_badges/measure?project=cssnr_mirror-repository-action&metric=alert_status )] ( https://sonarcloud.io/summary/new_code?id=cssnr_mirror-repository-action )
4
5
[ ![ GitHub Release Version] ( https://img.shields.io/github/v/release/cssnr/mirror-repository-action?logo=github )] ( https://github.com/cssnr/mirror-repository-action/releases/latest )
5
6
[ ![ GitHub Last Commit] ( https://img.shields.io/github/last-commit/cssnr/mirror-repository-action?logo=github&logoColor=white&label=updated )] ( https://github.com/cssnr/mirror-repository-action/graphs/commit-activity )
10
11
11
12
# Mirror Repository Action
12
13
13
- Mirror Git Repository to Remote Host.
14
-
15
14
- [ Inputs] ( #Inputs )
16
15
- [ Setup Instructions] ( #Setup-Instructions )
17
16
- [ Example] ( #Example )
18
17
- [ Support] ( #Support )
19
18
- [ Contributing] ( #Contributing )
20
19
20
+ Mirror Git Repository to Remote Host.
21
+
21
22
## Inputs
22
23
23
- | input | required | default | description |
24
- | -------- | ------------- | ---------- | -------------------------------------------------------- |
25
- | url | Not w/ ` host ` | - | \* Full URL to Mirror, overrides: ` host ` /` owner ` /` repo ` |
26
- | host | Not w/ ` url ` | - | \* Full Host to Mirror, example: ` https://codeberg.org ` |
27
- | owner | No | Repo Owner | \* Repository Owner of Mirror (if different from source) |
28
- | repo | No | Repo Name | \* Repository Name of Mirror (if different from source) |
29
- | create | No | - | \* Set to ` true ` to attempt to Create the Mirror Repo |
30
- | username | No | Repo Owner | Username for Authentication to Mirror |
31
- | password | Yes | - | Token or Password for Authentication to Mirror |
24
+ | input | required | default | description |
25
+ | -------- | : -------: | ---------- | -------------------------------------------------------- |
26
+ | url | or ` host ` | - | \* Full URL to Mirror, overrides: ` host ` /` owner ` /` repo ` |
27
+ | host | or ` url ` | - | \* Full Host to Mirror, example: ` https://codeberg.org ` |
28
+ | owner | - | Repo Owner | \* Repository Owner of Mirror (if different from source) |
29
+ | repo | - | Repo Name | \* Repository Name of Mirror (if different from source) |
30
+ | create | - | - | \* Set to ` true ` to attempt to Create the Mirror Repo |
31
+ | username | - | Repo Owner | Username for Authentication to Mirror |
32
+ | password | ** Yes ** | - | Token or Password for Authentication to Mirror |
32
33
33
34
** url/host** - You must provide either a full repository ` url ` or a ` host ` value.
34
35
@@ -43,7 +44,7 @@ Mirror Git Repository to Remote Host.
43
44
- Codeberg/Gitea/Forgejo go here: https://codeberg.org/user/settings/applications
44
45
- Select Permissions: ` write:organization ` ` write:repository ` ` write:user `
45
46
46
- 2 . Create Remote Repository to Mirror, or set ` create ` to ` true ` , for example: ` https:// codeberg.org`
47
+ 2 . Create Remote Repository to Mirror ( or set ` create ` to ` true ` for codeberg.org).
47
48
48
49
3 . Go to the settings for your source repository on GitHub and add the ` CODEBERG_TOKEN ` secret.
49
50
@@ -53,7 +54,7 @@ Mirror Git Repository to Remote Host.
53
54
54
55
- The ` owner ` is automatically set to the GitHub Organization or Username if personal. Set to override.
55
56
- The ` repo ` is automatically set to the GitHub Repository Name. This should only be set to rename repo.
56
- - For Codeberg, use the ` host ` below and set the ` username ` to your Codeberg username.
57
+ - For Codeberg, use the ` host ` to ` https://codeberg.org ` and set the ` username ` to your Codeberg username.
57
58
58
59
## Example
59
60
@@ -64,8 +65,6 @@ name: 'Mirror'
64
65
65
66
on :
66
67
workflow_dispatch :
67
- release :
68
- types : ['published']
69
68
push :
70
69
branches : ['**']
71
70
tags : ['**']
@@ -108,22 +107,23 @@ If you are experiencing an issue/bug or getting unexpected results, you can:
108
107
109
108
- Report an Issue : https://github.com/cssnr/mirror-repository-action/issues
110
109
- Chat with us on Discord : https://discord.gg/wXy6m2X8wY
111
- - Provide General
112
- Feedback : [https://cssnr.github.io/feedback/](https://cssnr.github.io/feedback/?app=Mirror%20Artifacts%20Action)
110
+ - Provide General Feedback : [https://cssnr.github.io/feedback/](https://cssnr.github.io/feedback/?app=Mirror%20Repository%20Action)
113
111
114
112
# Contributing
115
113
116
114
Currently, the best way to contribute to this project is to star this project on GitHub.
117
115
118
116
Additionally, you can support other GitHub Actions I have published :
119
117
120
- - [VirusTotal Action](https://github.com/cssnr/virustotal-action)
121
- - [Update Version Tags Action](https://github.com/cssnr/update-version-tags-action)
122
- - [Update JSON Value Action](https://github.com/cssnr/update-json-value-action)
123
- - [Parse Issue Form Action](https://github.com/cssnr/parse-issue-form-action)
124
- - [Mirror Repository Action](https://github.com/cssnr/mirror-repository-action)
125
- - [Stack Deploy Action](https://github.com/cssnr/stack-deploy-action)
126
- - [Portainer Stack Deploy](https://github.com/cssnr/portainer-stack-deploy-action)
127
- - [Mozilla Addon Update Action](https://github.com/cssnr/mozilla-addon-update-action)
118
+ - [Stack Deploy Action](https://github.com/cssnr/stack-deploy-action?tab=readme-ov-file#readme)
119
+ - [Portainer Stack Deploy](https://github.com/cssnr/portainer-stack-deploy-action?tab=readme-ov-file#readme)
120
+ - [VirusTotal Action](https://github.com/cssnr/virustotal-action?tab=readme-ov-file#readme)
121
+ - [Mirror Repository Action](https://github.com/cssnr/mirror-repository-action?tab=readme-ov-file#readme)
122
+ - [Update Version Tags Action](https://github.com/cssnr/update-version-tags-action?tab=readme-ov-file#readme)
123
+ - [Update JSON Value Action](https://github.com/cssnr/update-json-value-action?tab=readme-ov-file#readme)
124
+ - [Parse Issue Form Action](https://github.com/cssnr/parse-issue-form-action?tab=readme-ov-file#readme)
125
+ - [Cloudflare Purge Cache Action](https://github.com/cssnr/cloudflare-purge-cache-action?tab=readme-ov-file#readme)
126
+ - [Mozilla Addon Update Action](https://github.com/cssnr/mozilla-addon-update-action?tab=readme-ov-file#readme)
127
+ - [Docker Tags Action](https://github.com/cssnr/docker-tags-action?tab=readme-ov-file#readme)
128
128
129
129
For a full list of current projects to support visit : [https://cssnr.github.io/](https://cssnr.github.io/)
0 commit comments