From fc3532548140323f87cfe477bb2e87db9589bbb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pereira?= Date: Thu, 18 Feb 2021 17:31:51 -0500 Subject: [PATCH] Released kapp version can be used in github action (#193) Add a tag download validation to ensure that the version being released is the retrieved Start using the new github action --- .github/workflows/release-published.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-published.yml b/.github/workflows/release-published.yml index d24a41c72..38215e114 100644 --- a/.github/workflows/release-published.yml +++ b/.github/workflows/release-published.yml @@ -1,4 +1,4 @@ -name: Checks after release is published +name: Checks after any release is published on: release: types: ['published'] @@ -7,9 +7,10 @@ jobs: validate-github-action: runs-on: ubuntu-latest steps: - - uses: k14s/setup-k14s-action@v1 + - uses: vmware-tanzu/carvel-setup-action@v1 with: only: kapp + kapp: ${{ github.event.release.tag_name }} - run: | kapp version version=`kapp version` @@ -17,7 +18,7 @@ jobs: tool_version="$(echo $version | sed 's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$/\1/')" if [[ "v${tool_version}" == "${tag}" ]]; then - echo "Version match with latest" + echo "Version match with $tag" exit 0 else echo "Versions do not match v$tool_version != $tag"