Fix list-remote

main v0.1.6
William Beuil 2021-06-23 15:14:49 +02:00
parent 558a584df1
commit 3191afc0d3
No known key found for this signature in database
GPG Key ID: BED2072C5C2BF537
4 changed files with 35 additions and 2 deletions

View File

@ -5,5 +5,5 @@ driftctl_url=https://api.github.com/repos/cloudskiff/driftctl/tags\?page\=1\&per
remote_versions="$(curlw -sSf $driftctl_url)" || log_error "Failed to download remote versions from GitHub"
echo $remote_versions | grep -o '"name": "v[^"]*"' | cut -d '"' -f 4 | cut -c 2- | sort
echo $remote_versions | grep -o '"name": "v[^"]*"' | cut -d '"' -f 4 | cut -c 2- | sort -V

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -uo pipefail
version="0.1.5"
version="0.1.6"
git_revision=""
if cd "${BASH_SOURCE%/*}" 2>/dev/null && git remote -v 2>/dev/null | grep -q dctlenv; then

View File

@ -26,5 +26,8 @@ load "./test_helper"
0.2.3
0.3.0
0.3.1
0.10.0
0.11.0
1.0.0
OUT
}

View File

@ -1,4 +1,34 @@
[
{
"name": "v1.0.0",
"zipball_url": "https://api.github.com/repos/cloudskiff/driftctl/zipball/v1.0.0",
"tarball_url": "https://api.github.com/repos/cloudskiff/driftctl/tarball/v1.0.0",
"commit": {
"sha": "cdea16b5dbca1c6205068d74b092b3e5284cabbd",
"url": "https://api.github.com/repos/cloudskiff/driftctl/commits/cdea16b5dbca1c6205068d74b092b3e5284cabbd"
},
"node_id": "MDM6UmVmMjk3NjIyOTQ1OnJlZnMvdGFncy92MC4zLjE="
},
{
"name": "v0.11.0",
"zipball_url": "https://api.github.com/repos/cloudskiff/driftctl/zipball/v0.11.0",
"tarball_url": "https://api.github.com/repos/cloudskiff/driftctl/tarball/v0.11.0",
"commit": {
"sha": "cdea16b5dbca1c6205068d74b092b3e5284cabbd",
"url": "https://api.github.com/repos/cloudskiff/driftctl/commits/cdea16b5dbca1c6205068d74b092b3e5284cabbd"
},
"node_id": "MDM6UmVmMjk3NjIyOTQ1OnJlZnMvdGFncy92MC4zLjE="
},
{
"name": "v0.10.0",
"zipball_url": "https://api.github.com/repos/cloudskiff/driftctl/zipball/v0.10.0",
"tarball_url": "https://api.github.com/repos/cloudskiff/driftctl/tarball/v0.10.0",
"commit": {
"sha": "cdea16b5dbca1c6205068d74b092b3e5284cabbd",
"url": "https://api.github.com/repos/cloudskiff/driftctl/commits/cdea16b5dbca1c6205068d74b092b3e5284cabbd"
},
"node_id": "MDM6UmVmMjk3NjIyOTQ1OnJlZnMvdGFncy92MC4zLjE="
},
{
"name": "v0.3.1",
"zipball_url": "https://api.github.com/repos/cloudskiff/driftctl/zipball/v0.3.1",