Skip to content

Commit c8d39ca

Browse files
committed
Update
1 parent e33ad80 commit c8d39ca

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.github/workflows/solver-tests.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,27 @@ jobs:
9696
- name: Add BARON secrets
9797
if: ${{ matrix.package == 'BARON' }}
9898
shell: bash
99+
# Writing a multiline string is hard. GitHub says:
100+
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#multiline-strings
101+
#
102+
# For multiline strings, you may use a delimiter with the following syntax.
103+
#
104+
# {name}<<{delimiter}
105+
# {value}
106+
# {delimiter}
107+
#
108+
# Their example goes on to use 'EOF' as the delimiter, which works so
109+
# long as 'EOF' does not appear in the string. If you get the error:
110+
#
111+
# Run echo "SECRET_BARON_LICENSE='***
112+
# Error: Unable to process file command 'env' successfully.
113+
# Error: Invalid format '***'
114+
#
115+
# This is the most likely culprit.
99116
run: |
100-
echo "SECRET_BARON_LICENSE='${{ secrets.BARON_LICENSE }}'" >> $GITHUB_ENV
117+
echo "SECRET_BARON_LICENSE<<EOF"
118+
echo "${{ secrets.BARON_LICENSE }}" >> $GITHUB_ENV
119+
echo "EOF>>" >> $GITHUB_ENV
101120
# Setup CPLEX.jl
102121
- name: Add CPLEX secrets
103122
if: ${{ matrix.package == 'CPLEX' }}

0 commit comments

Comments
 (0)