From bfdbbc125b408f623ea99e1daf7a55e0127c6c4e Mon Sep 17 00:00:00 2001 From: Wilken Rivera Date: Mon, 12 Feb 2024 17:45:53 -0500 Subject: [PATCH] Managed by Terraform: Update notify-integration-release-via-manual github workflow --- .../notify-integration-release-via-manual.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/notify-integration-release-via-manual.yaml b/.github/workflows/notify-integration-release-via-manual.yaml index d5fbaac..e96f9e1 100644 --- a/.github/workflows/notify-integration-release-via-manual.yaml +++ b/.github/workflows/notify-integration-release-via-manual.yaml @@ -11,7 +11,20 @@ on: default: 'main' required: false jobs: + strip-version: + runs-on: ubuntu-latest + outputs: + packer-version: ${{ steps.strip.outputs.packer-version }} + steps: + - name: Strip leading v from version tag + id: strip + env: + REF: ${{ github.event.inputs.version }} + run: | + echo "packer-version=$(echo "$REF" | sed -E 's/v?([0-9]+\.[0-9]+\.[0-9]+)/\1/')" >> "$GITHUB_OUTPUT" notify-release: + needs: + - strip-version runs-on: ubuntu-latest steps: - name: Checkout this repo @@ -44,6 +57,6 @@ jobs: uses: ./integration-release-action with: integration_identifier: "packer/hashicorp/openstack" - release_version: ${{ github.event.inputs.version }} + release_version: ${{ needs.strip-version.outputs.packer-version }} release_sha: ${{ github.event.inputs.branch }} github_token: ${{ secrets.GITHUB_TOKEN }}