From 86d90ecc75a5400b8024f14e2beb40a3d17f73e0 Mon Sep 17 00:00:00 2001 From: Cameron Garnham Date: Mon, 11 Sep 2023 12:27:52 +0200 Subject: [PATCH] dev: debug container workflow --- .github/workflows/container.yaml | 11 +++++++---- cSpell.json | 1 + 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/container.yaml b/.github/workflows/container.yaml index d541cc3aa..c4554fab4 100644 --- a/.github/workflows/container.yaml +++ b/.github/workflows/container.yaml @@ -72,21 +72,24 @@ jobs: echo "type=development" >> $GITHUB_OUTPUT echo "continue=true" >> $GITHUB_OUTPUT + echo "On `main` Branch, Type: `development`" - fi - if [[ "${{ github.ref }}" == "refs/heads/develop" ]]; then + elif [[ "${{ github.ref }}" == "refs/heads/develop" ]]; then echo "type=development" >> $GITHUB_OUTPUT echo "continue=true" >> $GITHUB_OUTPUT + echo "On `develop` Branch, Type: `development`" - fi - if [[ "${{ github.ref }}" =~ ^(refs\/heads\/releases\/)(v)(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$ ]]; then + elif [[ "${{ github.ref }}" =~ ^(refs\/heads\/releases\/)(v)(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$ ]]; then version=$(echo "${{ github.ref }}" | sed -n -E 's/^(refs\/heads\/releases\/)//p') echo "version=$version" >> $GITHUB_OUTPUT echo "type=release" >> $GITHUB_OUTPUT echo "continue=true" >> $GITHUB_OUTPUT + echo "In `releases\` Branch, Type: `release`, Version: $version" + else + echo "Not Correct Branch. Will Not Continue" fi fi fi diff --git a/cSpell.json b/cSpell.json index a02a9b8e8..c9b547c90 100644 --- a/cSpell.json +++ b/cSpell.json @@ -38,6 +38,7 @@ "dockerhub", "downloadedi", "dtolnay", + "elif", "filesd", "Freebox", "gecos",