From 5f39da9c7ab5d37d8ebe808b13c23af7505e7655 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Sun, 22 Sep 2024 22:36:54 +0100 Subject: [PATCH] fix: make chmod fail gracefully --- deploy_user/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy_user/action.yml b/deploy_user/action.yml index 49a671a..806ffbe 100644 --- a/deploy_user/action.yml +++ b/deploy_user/action.yml @@ -26,7 +26,7 @@ runs: - name: "Ensure public_html exists" shell: bash run: | - ssh -v -i tmp.key ${{ inputs.username }}@skynet.skynet.ie "mkdir -p ~/public_html && chmod 711 ~ && chmod -R 755 ~/public_html" + ssh -v -i tmp.key ${{ inputs.username }}@skynet.skynet.ie "mkdir -p ~/public_html && chmod 711 ~ || true && chmod -R 755 ~/public_html || true" - name: "Ensure destination exists" shell: bash run: |