Skip to content

Commit

Permalink
Quote variable contents in update checker
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pganssle committed Jan 21, 2025
1 parent a178a14 commit 12fa080
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-for-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ jobs:
# Extract TZDATA_NEWS from file content
TZDATA_NEWS=$(cat "$news_files")
echo "TZDATA_VERSION=$TZDATA_VERSION" >> $GITHUB_ENV
echo "TZDATA_NEWS=$TZDATA_NEWS" >> $GITHUB_ENV
echo "TZDATA_VERSION='$TZDATA_VERSION'" >> $GITHUB_ENV
echo "TZDATA_NEWS='$TZDATA_NEWS'" >> $GITHUB_ENV
- name: Commit changes
id: commit_changes
Expand Down

0 comments on commit 12fa080

Please sign in to comment.