Skip to content

Commit e2d0ab2

Browse files
committed
fix(actions/flux-localhost-build): use file reference for commit content
argument list too long
1 parent a1a473b commit e2d0ab2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/flux-localhost-build.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,17 @@ jobs:
8181
run: |
8282
export MESSAGE="${{ env.MESSAGE }}"
8383
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
8585
if gh api --method PUT /repos/:owner/:repo/contents/${{ env.FILE_TO_COMMIT }} \
8686
--field message="${MESSAGE}" \
87-
--field content="${CONTENT}" \
87+
--field content="@/tmp/base64data" \
8888
--field encoding="base64" \
8989
--field branch="${{ env.DESTINATION_BRANCH }}" \
9090
--field sha="${SHA}" ; then
9191
echo "Pushed signed commit to GitHub."
9292
elif gh api --method PUT /repos/:owner/:repo/contents/${{ env.FILE_TO_COMMIT }} \
9393
--field message="${MESSAGE}" \
94-
--field content="${CONTENT}" \
94+
--field content="@/tmp/base64data" \
9595
--field encoding="base64" \
9696
--field branch="${{ env.DESTINATION_BRANCH }}" ; then
9797
echo "Pushed signed commit to GitHub."

0 commit comments

Comments
 (0)