diff --git a/.github/workflows/deploy-websites.yaml b/.github/workflows/deploy-websites.yaml index c1b3644..9166f59 100644 --- a/.github/workflows/deploy-websites.yaml +++ b/.github/workflows/deploy-websites.yaml @@ -6,6 +6,7 @@ on: - main paths: - 'ansible/playbook_websites.yml' + - 'bin/hugo_build' - 'websites/**' jobs: @@ -39,7 +40,7 @@ jobs: trusted-hosts: ${{ secrets.TRUSTED_HOSTS }} - name: Run hugo_build command - run: bin/hugo_build.sh + run: bin/hugo_build - name: Run the playbook to deploy websites env: diff --git a/bin/hugo_build b/bin/hugo_build index 27c45c1..0edd4cb 100755 --- a/bin/hugo_build +++ b/bin/hugo_build @@ -29,6 +29,6 @@ for dir in $(find "$GITHUB_WORKSPACE/websites" -maxdepth 1 -type d | grep -vE '^ fi echo "Hugo site built successfully in $dir" else - echo "$dir is not a directory" + echo "$dir is not a directory, skipping..." fi done \ No newline at end of file