Skip to content

Commit 12fa080

Browse files
committed
Quote variable contents in update checker
This job was failing in a way that suggests that because `$TZDATA_NEWS` is a multiline string, `TZDATA_NEWS=$TZDATA_NEWS >> $GITHUB_ENV` is creating an invalid ENV file. This is an attempt to remedy the problem.
1 parent a178a14 commit 12fa080

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ 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+
echo "TZDATA_NEWS='$TZDATA_NEWS'" >> $GITHUB_ENV
9292
9393
- name: Commit changes
9494
id: commit_changes

0 commit comments

Comments
 (0)