diff options
author | typebrook <typebrook@gmail.com> | 2020-05-02 13:52:50 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-05-02 13:52:50 +0800 |
commit | 4f1d699bfa091f97116f97e46301fec4c3a92083 (patch) | |
tree | ad9a0fd2ec202d3012bbf7271b583a4e941a6f29 | |
parent | 867ae0910c5c15d1a17d4a8e22f5ca689f9623e0 (diff) |
update
-rw-r--r-- | alias | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -98,7 +98,8 @@ github_api() { | |||
98 | curl --header "Authorization: token $GITHUB_API_TOKEN" $GITHUB_API/$1 | 98 | curl --header "Authorization: token $GITHUB_API_TOKEN" $GITHUB_API/$1 |
99 | } | 99 | } |
100 | gcg() { | 100 | gcg() { |
101 | git clone git@github.com:$1/$2.git && cd $(basename $2) | 101 | local user=$1; local repo=$2; shift; shift |
102 | git clone git@github.com:$user/$repo.git $@ && cd $(basename $repo) $* | ||
102 | } | 103 | } |
103 | release() { | 104 | release() { |
104 | command="github-release.sh\n github_api_token=$GITHUB_API_TOKEN\n repo=typebrook/mapstew\n tag=daily-taiwan-pbf\n type=asset\n filename=taiwan-latest.osm.pbf\n action=upload|overwrite|rename|delete\n extra=" | 105 | command="github-release.sh\n github_api_token=$GITHUB_API_TOKEN\n repo=typebrook/mapstew\n tag=daily-taiwan-pbf\n type=asset\n filename=taiwan-latest.osm.pbf\n action=upload|overwrite|rename|delete\n extra=" |