action-gitea-mirror/action.yml
2023-12-12 09:19:23 +08:00

86 lines
No EOL
2 KiB
YAML

name: 'Github To Gitea Mirror'
description: 'Python Script To Auto Trigger Gitea Mirror Using Github Action '
author: 'varunsridharan'
branding:
icon: 'airplay'
color: 'blue'
inputs:
gh_username:
description: 'Github Username'
default: false
required: true
gh_accesstoken:
description: 'Github Personal Access Token'
default: false
required: true
gitea_host:
description: 'Gitea Mirror Host URL'
default: false
required: true
gitea_username:
description: 'Gitea Username'
default: false
required: true
gitea_accesstoken:
description: 'Gitea Personal Access Token'
default: false
required: true
gitea_gist_prefix:
description: 'Custom Prefix For Repository When Mirroring Gists'
default: 'gist'
gitea_gist_surfix:
description: 'Custom Prefix For Repository When Mirroring Gists'
default: ''
gistsSource:
description: 'set to true to mirror all Gists Created By You'
default: false
gistsStared:
description: 'set to true to mirror all Gists Stared By You'
default: false
repositoryStared:
description: 'set to true to mirror all Repository Stared By You'
default: false
repositorySource:
description: 'set to true to mirror all Repository Created By You'
default: false
repositoryForked:
description: 'set to true to mirror all Repository Forked By You'
default: false
localCache:
description: 'set to true to store all repos created in gitea'
default: false
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.gh_username }}
- ${{ inputs.gh_accesstoken }}
- ${{ inputs.gitea_host }}
- ${{ inputs.gt_username }}
- ${{ inputs.gt_accesstoken }}
- ${{ inputs.gt_gist_prefix }}
- ${{ inputs.gt_gist_surfix }}
- ${{ inputs.gistsSource }}
- ${{ inputs.gistsStared }}
- ${{ inputs.repositoryStared }}
- ${{ inputs.repositorySource }}
- ${{ inputs.repositoryForked }}
- ${{ inputs.localCache }}