Skip to content

Commit efa9895

Browse files
r0qsheathdutton
andcommitted
Use random delimiter for heredoc in code-style workflow
Co-authored-by: Heath Dutton <heathdutton@gmail.com>
1 parent 1b686e2 commit efa9895

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/code-style.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,17 @@ jobs:
1717
- name: Install dependencies
1818
run: |
1919
sudo apt -q update
20-
sudo apt install -y shellcheck git
20+
sudo apt install -y shellcheck git openssl
2121
2222
- name: Check for C++ coding style
2323
id: style-check
2424
run: |
2525
output=$(scripts/check_style.sh 2>&1) || {
26+
delimiter="$(openssl rand -hex 8)"
2627
{
27-
echo "output<<EOF"
28+
echo "output<<${delimiter}"
2829
echo "$output"
29-
echo "EOF"
30+
echo "${delimiter}"
3031
} >> $GITHUB_OUTPUT
3132
exit 1
3233
}

0 commit comments

Comments
 (0)