From 82aab1b2d6353a57f8f48f66244d64a7f46782d3 Mon Sep 17 00:00:00 2001 From: cosimomeli Date: Mon, 23 Sep 2024 16:42:06 +0200 Subject: [PATCH] deployment workflow: fix tag version extraction (#137) ## Description deployment workflow: fix tag version extraction ## Changes Made - deployment workflow: fix tag version extraction ## Related Issues N/A ## Checklist - [x] I have used a PR title that is descriptive enough for a release note. - [ ] I have tested these changes locally. - [ ] I have added appropriate tests or updated existing tests. - [ ] I have tested these changes on a dedicated VM or a customer VM [name of the VM] - [ ] I have added appropriate documentation or updated existing documentation. --------- Co-authored-by: chicco785 --- .github/workflows/deployment.yaml | 3 ++- RELEASE_NOTES.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deployment.yaml b/.github/workflows/deployment.yaml index 68560e0..c90b61b 100644 --- a/.github/workflows/deployment.yaml +++ b/.github/workflows/deployment.yaml @@ -62,7 +62,8 @@ jobs: - name: Get image tag from git tag if: github.ref_type == 'tag' run: | - echo "IMAGE_TAG=${$(echo ${{github.ref}} | cut -d'/' -f3)#v}" >> $GITHUB_ENV + tag_version="$(echo ${{github.ref}} | cut -d'/' -f3)" + echo "IMAGE_TAG=${tag_version#v}" >> $GITHUB_ENV - name: Get image tag from main branch if: github.ref_type == 'branch' && github.ref == 'refs/heads/main' run: | diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index ec25406..d9a0ed7 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,6 +1,6 @@ # GitHub Workflows Release Notes -## 0.0.3-dev - 2024-09-20 +## 0.0.3-dev - 2024-09-23 ### Features @@ -23,6 +23,7 @@ ### Bug Fixes +- deployment workflow: fix tag version extraction (PR #137 by @cosimomeli) - Fix vulnerability-scan typo (PR #133 by @cosimomeli) - golang workflow: fix changes check (PR #130 by @chicco785) - Fix deployment workflow on PRs (PR #120 by @cosimomeli)