Skip to content

Commit ace71f7

Browse files
authored
feat: handle Dockerfiles missing ending newlines (#63)
1 parent bbdae7a commit ace71f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ runs:
153153
dockerfile: ${{ steps.vars.outputs.build_file }}
154154
shell: bash
155155
run: |
156-
# Add build envars to Dockerfile
156+
# Add build envars to Dockerfile (pad for missing line endings!)
157+
echo "" >> ${{ env.dockerfile }}
157158
echo "ENV BUILDER_IMAGE=ghcr.io/${{ github.repository }}/${{ inputs.package }}:${{ inputs.tag }}" >> ${{ env.dockerfile }}
158159
echo "ENV BUILDER_PACKAGE=${{ inputs.package }}" >> ${{ env.dockerfile }}
159160
echo "ENV BUILDER_REPO=${{ github.repository }}" >> ${{ env.dockerfile }}

0 commit comments

Comments
 (0)