First Commit.
This commit is contained in:
parent
c1d944d680
commit
23fc38a9ed
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM alpine:latest
|
||||
|
||||
RUN apk add git
|
||||
|
||||
RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python
|
||||
|
||||
RUN pip3 install PyGithub
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
53
action.yml
Normal file
53
action.yml
Normal file
|
@ -0,0 +1,53 @@
|
|||
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'
|
||||
|
||||
accesstoken:
|
||||
description: 'Github Personal Access Token'
|
||||
|
||||
gitea_host:
|
||||
description: 'Gitea Mirror Host URL'
|
||||
|
||||
gitea_username:
|
||||
description: 'Gitea Username'
|
||||
|
||||
gitea_accesstoken:
|
||||
description: 'Gitea Personal Access Token'
|
||||
|
||||
gitea_gist_prefix:
|
||||
description: 'Custom Prefix For Repository When Mirroring Gists'
|
||||
|
||||
gitea_gist_surfix:
|
||||
description: 'Custom Prefix For Repository When Mirroring Gists'
|
||||
|
||||
gistsSource:
|
||||
description: 'set to true to mirror all Gists Created By You'
|
||||
|
||||
gistsStared:
|
||||
description: 'set to true to mirror all Gists Stared By You'
|
||||
|
||||
repositoryStared:
|
||||
description: 'set to true to mirror all Repository Stared By You'
|
||||
|
||||
repositorySource:
|
||||
description: 'set to true to mirror all Repository Created By You'
|
||||
|
||||
repositoryForked:
|
||||
description: 'set to true to mirror all Repository Forked By You'
|
||||
|
||||
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'Dockerfile'
|
||||
args:
|
||||
- ${{ inputs.domain }}
|
Loading…
Reference in a new issue