From b6e47a8ef869356aa72be0a0745496e91f2d3090 Mon Sep 17 00:00:00 2001 From: thaovt Date: Tue, 4 Jun 2024 15:02:16 +0700 Subject: [PATCH] health-check workflow: add Log commit changes --- .github/workflows/health-check.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/health-check.yml b/.github/workflows/health-check.yml index 0b672f65..788944f6 100644 --- a/.github/workflows/health-check.yml +++ b/.github/workflows/health-check.yml @@ -46,8 +46,13 @@ jobs: author_email: scheduler@github.io message: 'Update error rpcs:${{ steps.input_data.outputs.target }}' + - name: Log commit changes + run: | + echo "Added files: ${{ steps.commit_changes.outputs.added_files }}" + echo "Modified files: ${{ steps.commit_changes.outputs.modified_files }}" + - name: Deploy Assets to Cloudflare Pages - if: success() && steps.commit_changes.outputs.added_files > 0 || steps.commit_changes.outputs.modified_files > 0 + if: steps.commit_changes.outputs.added_files > 0 || steps.commit_changes.outputs.modified_files > 0 id: cloudflare_deployment uses: cloudflare/pages-action@v1 with: @@ -61,7 +66,7 @@ jobs: - name: Notify to Discord uses: sarisia/actions-status-discord@v1 - if: success() && steps.commit_changes.outputs.added_files > 0 || steps.commit_changes.outputs.modified_files > 0 + if: steps.commit_changes.outputs.added_files > 0 || steps.commit_changes.outputs.modified_files > 0 with: webhook: ${{ secrets.DISCORD_WEBHOOK }} status: ${{ job.status }}