updating repository
This commit is contained in:
parent
1ad59307c7
commit
419649478d
|
@ -22,11 +22,11 @@ echo "###[group] Setting Up Gitea Mirror Script"
|
|||
git clone https://github.com/varunsridharan/github-gitea-mirror ./mirror-handler
|
||||
# git clone https://git.api.net.tw/git.admin/github-forgejo-mirror.git ./mirror-handler
|
||||
echo "###[endgroup]"
|
||||
# cd ./mirror-handler
|
||||
cd ./mirror-handler
|
||||
echo "🗳️ Updating Settings"
|
||||
template='{"github":{"username":"%s","accesstoken":"%s"},"gitea":{"host":"%s","accesstoken":"%s","username":"%s","default_userpassword":"%s","gist":{"prefix":"%s","surfix":"%s"}},"repomap":{},"gistsSource":%s,"gistsStared":%s,"repositoryStared":%s,"repositorySource":%s,"repositoryForked":%s, "local_cache": { "enabled": %s, "file_path": "gitea.json" }}'
|
||||
json_string=$(printf "$template" "$gh_username" "$gh_accesstoken" "$gitea_host" "$gitea_accesstoken" "$gitea_username" "RY7VpBD62P7964c9mSz%2GAM82hv68yUbHc4@Gdw8c%f^W3*qdzof*8a6b^rKy" "$gitea_gist_prefix" "$gitea_gist_surfix" "$gistsSource" "$gistsStared" "$repositoryStared" "$repositorySource" "$repositoryForked" "$localCache")
|
||||
echo "$json_string" > ./mirror-handler/src/config.json
|
||||
echo "$json_string" > ./src/config.json
|
||||
|
||||
if [ -z "$GITHUB_TOKEN" ]; then
|
||||
echo "🚩 Set the GITHUB_TOKEN env variable To Store Cache In REPO"
|
||||
|
|
Loading…
Reference in a new issue