First Commit.

This commit is contained in:
Varun 2020-10-16 19:56:07 +05:30
parent c1d944d680
commit 23fc38a9ed
No known key found for this signature in database
GPG key ID: 93FB46DCF16E0D6F
2 changed files with 66 additions and 0 deletions

13
Dockerfile Normal file
View 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
View 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 }}