Skip to content

Commit

Permalink
Fix environment variable setting
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasmfish authored Sep 6, 2024
1 parent 3b0a3cc commit 616ef36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/generate_readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 616ef36

Please sign in to comment.