Commit fa5457b
committed
ci: add job to mirror repo to Codeberg
- [ci] Add new job `mirror_to_codeberg` (.github/workflows/repo-mirror.yml:52)
- [ci] Set `runs-on` to `ubuntu-latest` (repo-mirror.yml:53)
- [ci] Add step using `actions/checkout@v3` with `fetch-depth: 0` (repo-mirror.yml:55-57)
- [ci] Add `Configure Git` step with user name and email (repo-mirror.yml:58-61)
- [ci] Add `Mirror to Codeberg` step using `SSH_PRIVATE_KEY` and `TARGET_URL` secrets (repo-mirror.yml:62-65)
- [ci] Create `~/.ssh` directory and write `SSH_PRIVATE_KEY` (repo-mirror.yml:66-67)
- [ci] Set 600 permissions for `~/.ssh/id_rsa` (repo-mirror.yml:68)
- [ci] Add `codeberg.org` host key to `known_hosts` (repo-mirror.yml:69)
- [ci] Execute `git push --force` command (repo-mirror.yml:71)
- [style] Add newline at end of file (repo-mirror.yml:50,71)1 parent 836b04f commit fa5457b
1 file changed
+23
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
0 commit comments