File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -81,17 +81,17 @@ jobs:
81
81
run : |
82
82
export MESSAGE="${{ env.MESSAGE }}"
83
83
export SHA=$( git rev-parse ${{ env.DESTINATION_BRANCH }}:${{ env.FILE_TO_COMMIT }} )
84
- export CONTENT=$( base64 -i ${{ env.FILE_TO_COMMIT }} )
84
+ base64 -i -w0 ${{ env.FILE_TO_COMMIT }} > /tmp/base64data
85
85
if gh api --method PUT /repos/:owner/:repo/contents/${{ env.FILE_TO_COMMIT }} \
86
86
--field message="${MESSAGE}" \
87
- --field content="${CONTENT} " \
87
+ --field content="@/tmp/base64data " \
88
88
--field encoding="base64" \
89
89
--field branch="${{ env.DESTINATION_BRANCH }}" \
90
90
--field sha="${SHA}" ; then
91
91
echo "Pushed signed commit to GitHub."
92
92
elif gh api --method PUT /repos/:owner/:repo/contents/${{ env.FILE_TO_COMMIT }} \
93
93
--field message="${MESSAGE}" \
94
- --field content="${CONTENT} " \
94
+ --field content="@/tmp/base64data " \
95
95
--field encoding="base64" \
96
96
--field branch="${{ env.DESTINATION_BRANCH }}" ; then
97
97
echo "Pushed signed commit to GitHub."
You can’t perform that action at this time.
0 commit comments