From 616ef366188a8b5a65369c0c7c9bcf29eb111278 Mon Sep 17 00:00:00 2001 From: Thomas Fish <50103643+thomasmfish@users.noreply.github.com> Date: Fri, 6 Sep 2024 12:41:42 +0100 Subject: [PATCH] Fix environment variable setting --- .github/workflows/generate_readme.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/generate_readme.yaml b/.github/workflows/generate_readme.yaml index 0aa78e0..813bbd6 100644 --- a/.github/workflows/generate_readme.yaml +++ b/.github/workflows/generate_readme.yaml @@ -32,7 +32,7 @@ jobs: var_name="$(echo "${file^^}" | tr "./" "_")" # Export file contents to an environment variable named from the path, e.g.: # 'section/test_file.md' would be 'SECTION_TEST_FILE_MD' - export "${!var_name}"= <"$file" + export "${!var_name}"="$(<"$file")" envsubst < "${!var_name}" # Substitute environment variables into each section (not other sections) fi done