From 56987886af565f381b265019e57401e2d7adc3ab Mon Sep 17 00:00:00 2001 From: bip production <119274726+bipproduction@users.noreply.github.com> Date: Fri, 21 Feb 2025 12:20:02 +0800 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 733493da..934d6001 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -61,20 +61,6 @@ jobs: - name: Build project run: bun run build - # Download GitHub Actions logs - - name: Download GitHub Actions logs - run: | - mkdir -p logs - curl -H "Authorization: token ${{ secrets.WIBU_GITHUB_TOKEN }}" \ - -L "https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/logs" \ - -o logs.zip - - # Extract only important logs - - name: Extract important logs - run: | - unzip logs.zip -d logs - grep -E "error|warning" logs/*.txt > important_logs.txt - # Send email with GitHub Actions logs - name: Send email with logs uses: dawidd6/action-send-mail@v3 @@ -91,8 +77,7 @@ jobs: Branch: ${{ github.ref }} Commit: ${{ github.sha }} - Please find the attached important logs for more details. + Please find the logs for this run at the following link: + https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} to: recipient-email@example.com from: your-email@gmail.com - attachments: | - ${{ github.workspace }}/important_logs.txt