Skip to content

Commit

Permalink
Use proper syntax for multiline env variable
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pganssle committed Jan 21, 2025
1 parent a178a14 commit 5bf324b
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 5bf324b

Please sign in to comment.