From f1558470455e905e26a4d7219801e9719334bdb7 Mon Sep 17 00:00:00 2001 From: Anthony Pham Date: Thu, 31 Oct 2024 18:47:42 +0100 Subject: [PATCH] fix dispatch trigger --- .github/workflows/dispatch-update.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dispatch-update.yml b/.github/workflows/dispatch-update.yml index 9d47135..6079442 100644 --- a/.github/workflows/dispatch-update.yml +++ b/.github/workflows/dispatch-update.yml @@ -16,7 +16,8 @@ jobs: - name: Update version in Ansible configuration run: | - TAG_NAME="${{ env.TAG_NAME#v }}" + TAG_NAME="$(echo "${TAG_NAME}" | sed 's/^v//')" + sed -i -E "s/^node_image_version: 'v\.?[0-9]+\.[0-9]+\.[0-9]+[a-zA-Z0-9\-]*'/node_image_version: 'v${TAG_NAME}'/" group_vars/all.yml # Commit and push changes