Skip to content

Commit b9d094d

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 b9d094d

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)