mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
Merge branch 'Add-github-actions' into 'master'
Added Github actions/workflow to the nightly CI See merge request fdroid/fdroidserver!1032
This commit is contained in:
commit
6952a23c47
1 changed files with 10 additions and 0 deletions
|
@ -235,6 +235,16 @@ def main():
|
||||||
+ '\nhttps://developer.github.com/v3/guides/managing-deploy-keys/#deploy-keys')
|
+ '\nhttps://developer.github.com/v3/guides/managing-deploy-keys/#deploy-keys')
|
||||||
git_user_name = os.getenv('CIRCLE_USERNAME')
|
git_user_name = os.getenv('CIRCLE_USERNAME')
|
||||||
git_user_email = git_user_name + '@' + platform.node()
|
git_user_email = git_user_name + '@' + platform.node()
|
||||||
|
elif 'GITHUB_ACTIONS' in os.environ:
|
||||||
|
# we are in Github actions
|
||||||
|
repo_git_base = (os.getenv('GITHUB_REPOSITORY') + NIGHTLY)
|
||||||
|
clone_url = (os.getenv('GITHUB_SERVER_URL') + '/' + repo_git_base)
|
||||||
|
repo_base = clone_url + '/raw/master/fdroid'
|
||||||
|
servergitmirror = 'git@' + urlparse(clone_url).netloc + ':' + repo_git_base
|
||||||
|
deploy_key_url = ('https://github.com/' + repo_git_base + '/settings/keys'
|
||||||
|
+ '\nhttps://developer.github.com/v3/guides/managing-deploy-keys/#deploy-keys')
|
||||||
|
git_user_name = os.getenv('GITHUB_ACTOR')
|
||||||
|
git_user_email = git_user_name + '@' + platform.node()
|
||||||
else:
|
else:
|
||||||
print(_('ERROR: unsupported CI type, patches welcome!'))
|
print(_('ERROR: unsupported CI type, patches welcome!'))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue