From c4640fe1ae2431d011cb70248d4e028dafe53cac Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 24 Nov 2023 15:46:31 +0100 Subject: [PATCH] Handle containers tag values between quotes in daily workflow (#15326) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** ⚒️ Fixes # **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [x] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code **🧪 How Has This Been Tested?** **📃 Notes:** This follows https://github.com/truecharts/charts/pull/15325 issue, which is from daily workflow not properly handling tag between quotes and keeping the first quote leading to this quote being inserted between quotes in the Chart.yaml later on. **✔️ Checklist:** - [ ] ⚖️ My code follows the style guidelines of this project - [x] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made corresponding changes to the documentation - [ ] ⚠️ My changes generate no new warnings - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [ ] ⬆️ I increased versions for any altered app according to semantic versioning **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🪞 I have opened a PR on [truecharts/containers](https://github.com/truecharts/containers) adding the container to TrueCharts mirror repo. - [ ] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._ --- .github/workflows/daily.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/daily.yaml b/.github/workflows/daily.yaml index 9107ad577fc..0455fe73f31 100644 --- a/.github/workflows/daily.yaml +++ b/.github/workflows/daily.yaml @@ -74,6 +74,7 @@ jobs: echo "Attempting to sync primary tag with appversion for: ${chartname}" local tag="$(cat ${chart}/values.yaml | grep '^ tag: ' | awk -F" " '{ print $2 }' | head -1)" tag="${tag%%@*}" + tag="${tag##\"}" tag="${tag:-auto}" tag=$(echo $tag | sed "s/release-//g") tag=$(echo $tag | sed "s/release_//g")