From aba343356c6d8fffd8279da0fa2d766221013f8d Mon Sep 17 00:00:00 2001 From: Talal Ashraf Date: Mon, 29 Jul 2024 14:50:27 -0400 Subject: [PATCH] ci: update description for contract build action to include tags (#547) --- .github/workflows/build-contracts-and-push-to-r2.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-contracts-and-push-to-r2.yaml b/.github/workflows/build-contracts-and-push-to-r2.yaml index 51d87aa49..4ae1f3983 100644 --- a/.github/workflows/build-contracts-and-push-to-r2.yaml +++ b/.github/workflows/build-contracts-and-push-to-r2.yaml @@ -9,7 +9,7 @@ on: workflow_dispatch: inputs: branch: - description: Github branch to checkout for compilation + description: Github branch or tag to checkout for compilation required: true default: main type: string @@ -40,16 +40,16 @@ jobs: run: | tag="${{ steps.get-tag.outputs.tag }}" is_release="false" - + if [[ $tag =~ ^([a-zA-Z-]+)-v([0-9]+\.[0-9]+\.[0-9]+)$ ]]; then is_release="true" crate_name="${BASH_REMATCH[1]}" crate_version="${BASH_REMATCH[2]}" - + echo "Is release: $is_release" echo "Crate Name: $crate_name" echo "Crate Version: $crate_version" - + echo "is-release=$is_release" >> $GITHUB_OUTPUT echo "crate-name=$crate_name" >> $GITHUB_OUTPUT echo "crate-version=$crate_version" >> $GITHUB_OUTPUT