From 513444a748283338711905303fe6ba0ba2ba7478 Mon Sep 17 00:00:00 2001 From: James Cuzella Date: Mon, 23 Oct 2023 17:11:01 -0600 Subject: [PATCH] pre-release: Testing custom version against forked pre-release --- .github/workflows/workflow.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 2c81bd5..4488699 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -71,12 +71,14 @@ jobs: uses: ./ with: token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }} - version: 1.38.0 + version: v1.101.0-pre.git.f747827eb8e6 - name: Verify installation of correct version run: | VERSION=$(doctl version | head -1 | cut -f3 -d' ' | cut -f1 -d'-') - if [ "$VERSION" != "1.38.0" ]; then exit 1; fi + if [ "$VERSION" != "1.101.0" ]; then exit 1; fi + VERSION=$(doctl version | grep -i 'Git commit' | cut -f2 -d':' | tr -d ' \n') + if [ "$GIT_SHA" != "Git commit hash: f747827e" ]; then exit 1; fi - name: Verify log-in run: doctl compute region list @@ -90,12 +92,14 @@ jobs: uses: ./ with: token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }} - version: 1.38.0 + version: v1.101.0-pre.git.f747827eb8e6 - name: Verify installation of correct version run: | $VERSION = (doctl version | head -1 | cut -f3 -d' ' | cut -f1 -d'-') - If (-NOT ($VERSION -eq "1.38.0")) { exit 1 } + If (-NOT ($VERSION -eq "1.101.0")) { exit 1 } + $GIT_SHA = (doctl version | grep -i 'Git commit' | cut -f2 -d':' | tr -d ' \n') + If (-NOT ($GIT_SHA -eq "f747827e")) { exit 1 } - name: Verify log-in run: doctl compute region list