Skip to content

Commit

Permalink
Fix publish GHA.
Browse files Browse the repository at this point in the history
```
# expansion is pretty cool
# https://www.gnu.org/software/bash/manual/html_node/Shell-Expansions.html
echo "hello `world`"
echo "hello ${world}"

# single quotes disable expansion
# https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
echo 'hello `world`'
echo 'hello ${world}'

# Problem - single quotes in single quotes
echo 'hello ' world'

# Fix #1: quote the single quote, which is exciting
echo 'hello '"'"' world'

# Fix #2: heredoc, maybe more readable but awkward
# https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Here-Documents
echo <<'EOF'
hello ' world
EOF
```

PiperOrigin-RevId: 675586161
  • Loading branch information
michaelreneer authored and copybara-github committed Sep 17, 2024
1 parent f1df51a commit cca8ab5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ jobs:
gh release create "v${{ env.version }}" \
--target="${{ github.sha }}" \
--title="TensorFlow Federated ${{ env.version }}" \
--notes='${{ env.description }}'
--notes="$(cat <<'EOF'
${{ env.description }}
EOF
)"
build-package:
name: Build Package
Expand Down

0 comments on commit cca8ab5

Please sign in to comment.