Skip to content

Commit ba5df97

Browse files
committed
Use proper syntax for multiline env variable
Per the Github documentation, multiline strings must use a delimiter with the following syntax: {name}<<{delimiter} {value} {delimiter} Testing this with my fork indicates that it should work.
1 parent a178a14 commit ba5df97

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/check-for-updates.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,12 @@ jobs:
8787
# Extract TZDATA_NEWS from file content
8888
TZDATA_NEWS=$(cat "$news_files")
8989
90-
echo "TZDATA_VERSION=$TZDATA_VERSION" >> $GITHUB_ENV
91-
echo "TZDATA_NEWS=$TZDATA_NEWS" >> $GITHUB_ENV
90+
echo "TZDATA_VERSION='$TZDATA_VERSION'" >> $GITHUB_ENV
91+
{
92+
echo 'TZDATA_NEWS<<EOF'
93+
echo $TZDATA_NEWS
94+
echo EOF
95+
} >> "$GITHUB_ENV"
9296
9397
- name: Commit changes
9498
id: commit_changes

0 commit comments

Comments
 (0)