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 b9d094d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/check-for-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,12 @@ 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<<EOF'
echo $TZDATA_NEWS
echo EOF
} >> "$GITHUB_ENV"
- name: Commit changes
id: commit_changes
Expand Down

0 comments on commit b9d094d

Please sign in to comment.