From d627526e3e5f9629ae88d7b5a54975520405db4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Georger?= Date: Sun, 25 Oct 2026 18:56:53 -0300 Subject: [PATCH] Refactor environment variable loading in build workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update the script to read environment variables from versions.env using 'source' instead of a loop. Signed-off-by: Nicolás Georger --- .github/workflows/build-main.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-main.yaml b/.github/workflows/build-main.yaml index d36d700..433d330 100644 --- a/.github/workflows/build-main.yaml +++ b/.github/workflows/build-main.yaml @@ -40,15 +40,16 @@ jobs: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false + - name: Read versions.env id: meta shell: bash run: | set -euo pipefail - while IFS= read -r line; do - case "$line" in ''|'#'*) continue ;; esac - echo "$line" >> "$GITHUB_ENV" - done < versions.env + set -a + # shellcheck disable=SC1091 + source versions.env + set +a identity="$DSH_VERSION" [ -z "$RELEASE_REVISION" ] || identity="$DSH_VERSION-$RELEASE_REVISION" {