2020-10-16 22:26:07 +08:00
|
|
|
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'
|
2020-10-26 10:51:59 +08:00
|
|
|
default: false
|
|
|
|
required: true
|
2020-10-16 22:26:07 +08:00
|
|
|
|
2020-10-17 09:32:45 +08:00
|
|
|
gh_accesstoken:
|
2020-10-16 22:26:07 +08:00
|
|
|
description: 'Github Personal Access Token'
|
2020-10-26 10:51:59 +08:00
|
|
|
default: false
|
|
|
|
required: true
|
2020-10-16 22:26:07 +08:00
|
|
|
|
|
|
|
gitea_host:
|
|
|
|
description: 'Gitea Mirror Host URL'
|
2020-10-26 10:51:59 +08:00
|
|
|
default: false
|
|
|
|
required: true
|
2020-10-16 22:26:07 +08:00
|
|
|
|
|
|
|
gitea_username:
|
|
|
|
description: 'Gitea Username'
|
2020-10-26 10:51:59 +08:00
|
|
|
default: false
|
|
|
|
required: true
|
2020-10-16 22:26:07 +08:00
|
|
|
|
|
|
|
gitea_accesstoken:
|
|
|
|
description: 'Gitea Personal Access Token'
|
2020-10-26 10:51:59 +08:00
|
|
|
default: false
|
|
|
|
required: true
|
2020-10-16 22:26:07 +08:00
|
|
|
|
|
|
|
gitea_gist_prefix:
|
|
|
|
description: 'Custom Prefix For Repository When Mirroring Gists'
|
2020-10-26 10:51:59 +08:00
|
|
|
default: 'gist'
|
2020-10-16 22:26:07 +08:00
|
|
|
|
|
|
|
gitea_gist_surfix:
|
|
|
|
description: 'Custom Prefix For Repository When Mirroring Gists'
|
2020-10-26 10:51:59 +08:00
|
|
|
default: ''
|
2020-10-16 22:26:07 +08:00
|
|
|
|
|
|
|
gistsSource:
|
|
|
|
description: 'set to true to mirror all Gists Created By You'
|
2020-10-26 10:51:59 +08:00
|
|
|
default: false
|
2020-10-16 22:26:07 +08:00
|
|
|
|
|
|
|
gistsStared:
|
|
|
|
description: 'set to true to mirror all Gists Stared By You'
|
2020-10-26 10:51:59 +08:00
|
|
|
default: false
|
2020-10-16 22:26:07 +08:00
|
|
|
|
|
|
|
repositoryStared:
|
|
|
|
description: 'set to true to mirror all Repository Stared By You'
|
2020-10-26 10:51:59 +08:00
|
|
|
default: false
|
2020-10-16 22:26:07 +08:00
|
|
|
|
|
|
|
repositorySource:
|
|
|
|
description: 'set to true to mirror all Repository Created By You'
|
2020-10-26 10:51:59 +08:00
|
|
|
default: false
|
2020-10-16 22:26:07 +08:00
|
|
|
|
|
|
|
repositoryForked:
|
|
|
|
description: 'set to true to mirror all Repository Forked By You'
|
2020-10-26 10:51:59 +08:00
|
|
|
default: false
|
2020-10-16 22:26:07 +08:00
|
|
|
|
2020-10-26 10:17:14 +08:00
|
|
|
localCache:
|
|
|
|
description: 'set to true to store all repos created in gitea'
|
2020-10-26 10:32:05 +08:00
|
|
|
default: false
|
2020-10-26 10:17:14 +08:00
|
|
|
|
2020-10-16 22:26:07 +08:00
|
|
|
|
|
|
|
runs:
|
|
|
|
using: 'docker'
|
|
|
|
image: 'Dockerfile'
|
|
|
|
args:
|
2020-10-16 22:37:12 +08:00
|
|
|
- ${{ inputs.gh_username }}
|
2020-10-17 09:32:45 +08:00
|
|
|
- ${{ inputs.gh_accesstoken }}
|
2020-10-16 22:37:12 +08:00
|
|
|
- ${{ inputs.gitea_host }}
|
2023-12-12 09:19:23 +08:00
|
|
|
- ${{ inputs.gt_username }}
|
|
|
|
- ${{ inputs.gt_accesstoken }}
|
|
|
|
- ${{ inputs.gt_gist_prefix }}
|
|
|
|
- ${{ inputs.gt_gist_surfix }}
|
2020-10-16 22:37:12 +08:00
|
|
|
- ${{ inputs.gistsSource }}
|
|
|
|
- ${{ inputs.gistsStared }}
|
|
|
|
- ${{ inputs.repositoryStared }}
|
|
|
|
- ${{ inputs.repositorySource }}
|
2020-10-26 10:17:14 +08:00
|
|
|
- ${{ inputs.repositoryForked }}
|
2023-12-12 15:52:53 +08:00
|
|
|
- ${{ inputs.localCache }}
|