From b31b405545de4ecd5eb5a51dc16aa9e884b2b4dd Mon Sep 17 00:00:00 2001 From: Kevin Masseix Date: Wed, 10 Jan 2024 10:35:48 +0100 Subject: [PATCH] chore: log build stdout on github action when executed on remote server --- .github/workflows/seo.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/seo.yml b/.github/workflows/seo.yml index 6dbf7f0..eef9e62 100644 --- a/.github/workflows/seo.yml +++ b/.github/workflows/seo.yml @@ -4,7 +4,7 @@ name: 'SEO' on: push: - branches: [main] + branches: [main, remote_build_stdout_on_github] workflow_dispatch: schedule: - cron: '0 1 * * *' @@ -36,7 +36,7 @@ jobs: SSH_HOST: ${{ secrets[matrix.host] }} - name: Deploy to production - run: ssh -v -i ./deploy.key www-data@$SSH_HOST '/opt/docker/app/sitemap/deploy.sh >> /var/log/cron_build_sitemap' + run: ssh -i ./deploy.key www-data@$SSH_HOST '/opt/docker/app/sitemap/deploy.sh | tee --append /var/log/cron_build_sitemap' env: SSH_HOST: ${{ secrets[matrix.host] }}