Skip to content

Commit c438c04

Browse files
committed
normalize line-endings in deployed sh scripts
1 parent 23de61f commit c438c04

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/docs-local.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ jobs:
121121
echo INTERNAL_PORT=${{ secrets.PORT }} >> ./deploy/.env
122122
echo DOCKER_HUB_USER=${{ secrets.DOCKER_HUB_USER }} >> ./deploy/.env
123123
echo DOCKER_IMAGE_NAME=${{ secrets.DOCKER_IMAGE_NAME }} >> ./deploy/.env
124+
- name: Normalize line endings for deploy scripts
125+
run: |
126+
sudo apt-get update -y
127+
sudo apt-get install -y dos2unix
128+
find ./deploy -type f -name "*.sh" -exec dos2unix {} \;
124129
- name: Deploy using SSH 🚛
125130
uses: UnterrainerInformatik/ssh-deploy-action@v1
126131
with:

0 commit comments

Comments
 (0)