Sha256: cbbc2488c55a3667edfa992aebf3a97946494ff38c709577725d18d5df62d391

Contents?: true

Size: 938 Bytes

Versions: 6152

Compression:

Stored size: 938 Bytes

Contents

#!/bin/sh
#
# This file has been modified by Cybrid.
#
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
#
# Usage example: /bin/sh ./git_push.sh "brent-cybrid" "brent@cybrid.app" "Cybrid-app" "openapi-petstore-perl" "v0.0.0"
#
# NOTE: This will overwrite all the git history for the repo.
#

set -e

git_user_id=$1
git_user_email=$2
git_org_id=$3
git_repo_id=$4
release_version=$5

git config --global user.email "${git_user_email}"
git config --global user.name "${git_user_id}"

git add .
git commit -m "$release_version"
git tag -a $release_version -m "$release_version"

git remote remove origin
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@github.com/${git_org_id}/${git_repo_id}.git

echo "Git pushing to https://github.com/${git_org_id}/${git_repo_id}.git"

git push origin main 2>&1 | grep -v 'To https'
git push origin $release_version 2>&1 | grep -v 'To https'

Version data entries

6,152 entries across 6,152 versions & 3 rubygems

Version Path
cybrid_api_bank_ruby-0.123.149 git_push.sh
cybrid_api_id_ruby-0.123.149 git_push.sh
cybrid_api_organization_ruby-0.123.149 git_push.sh
cybrid_api_bank_ruby-0.123.148 git_push.sh
cybrid_api_id_ruby-0.123.148 git_push.sh
cybrid_api_organization_ruby-0.123.148 git_push.sh
cybrid_api_bank_ruby-0.123.147 git_push.sh
cybrid_api_organization_ruby-0.123.147 git_push.sh
cybrid_api_id_ruby-0.123.147 git_push.sh
cybrid_api_bank_ruby-0.123.145 git_push.sh
cybrid_api_organization_ruby-0.123.145 git_push.sh
cybrid_api_id_ruby-0.123.145 git_push.sh
cybrid_api_bank_ruby-0.123.144 git_push.sh
cybrid_api_id_ruby-0.123.144 git_push.sh
cybrid_api_organization_ruby-0.123.144 git_push.sh
cybrid_api_bank_ruby-0.123.143 git_push.sh
cybrid_api_organization_ruby-0.123.143 git_push.sh
cybrid_api_id_ruby-0.123.143 git_push.sh
cybrid_api_bank_ruby-0.123.142 git_push.sh
cybrid_api_id_ruby-0.123.142 git_push.sh