File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 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' }}
You can’t perform that action at this time.
0 commit comments