Inputs ​
đź’ˇ Click on the Input Name for more Details.
| Input Name | Default Value | Short Description of the Input Value |
|---|---|---|
| url | - | Full URL to Mirror; Overrides: host/owner/repo |
| host | - | Full Host to Mirror; Example: https://codeberg.org |
| owner | Source Owner | Repository Owner of Mirror (if different from source) |
| repo | Source Repo | Repository Name of Mirror (if different from source) |
| create | false | Set to true to attempt to Create the Mirror Repo |
| username | Source Owner | Username for Authentication to Mirror |
| password | - | Token or Password for Authentication to Mirror |
| summary | true | Add Job Summary. Set to false to Disable |
| private | Repo Private | If the Mirror Repo Status is Different from Source |
See the Examples section for more options.
Details ​
url Important ​
You must set this or host, not both.
Important! Setting this will override host, owner and repo.
Example: https://codeberg.org/cssnr/mirror-repository-action
host Important ​
You must set this or url, not both.
To use automatic owner or repo detection, set the destination host.
Example: https://codeberg.org
Overridden by url.
owner ​
If the destination owner is different from the source, you can set it here.
Example: cssnr
Default: Source Owner
Overridden by url.
repo ​
If the destination repository is different from the source, you can set it here.
Example: mirror-repository-action
Default: Source Repository
Overridden by url.
create ​
Tested with Codeberg but should also work with Gitea/Forgejo. Set to true to enable.
Default: false
username ​
Authentication username if different from owner.
Example: shaner
Default: Source Owner
password Required ​
Authentication password or token associated with the username.
summary ​
Write a Summary for the job. To disable this set to false.
View Example Job Summary
âś… Successfully Mirrored: cssnr/mirror-repository-action
Results
remote:
remote: Create a new pull request for 'updates':
remote: https://codeberg.org/cssnr/mirror-repository-action/compare/master...updates
remote:
To https://codeberg.org/cssnr/mirror-repository-action
eaadc3f..da84f34 origin/updates -> updatesDefault: true
private ​
If the Mirror Repo Status is Different from Source.
Default: Source Private Status
Examples ​
steps:
- name: 'Docker Context'
uses: cssnr/docker-context-action@v1
with:
host: ${{ secrets.DOCKER_HOST }}
user: ${{ secrets.DOCKER_USER }}
port: 22 # 22 is the default value - optional
pass: ${{ secrets.DOCKER_PASS }} # or ssh_key - optional
ssh_key: ${{ secrets.DOCKER_SSH_KEY }} # or pass - optional
- name: 'Inspect Docker'
runs: |
docker context ls
docker context inspect
docker info
docker psÂ
WARNING
These docs are not finished. Please see the README.md on GitHub.
