Skip to content

Commit

Permalink
Handle multi-line strings (#700)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan-aguilar authored Jan 9, 2024
1 parent 42a08de commit a1722da
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/actions/patch-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,20 @@ runs:
INPUT_PASSWORD: ${{ inputs.gpg_password }}
shell: bash
run: |
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
if [[ ! -z "$INPUT_KEY" ]]; then
echo "GPG_PRIVATE_KEY=$INPUT_KEY" >> $GITHUB_ENV
{
echo "GPG_PRIVATE_KEY<<$EOF"
echo "$INPUT_KEY"
echo "$EOF"
} >> "$GITHUB_ENV"
fi
if [[ ! -z "$INPUT_PASSWORD" ]]; then
echo "GPG_PASSWORD=$INPUT_PASSWORD" >> $GITHUB_ENV
{
echo "GPG_PASSWORD<<$EOF"
echo "$INPUT_PASSWORD"
echo "$EOF"
} >> "$GITHUB_ENV"
fi
- name: check patches
Expand Down

0 comments on commit a1722da

Please sign in to comment.