From c00a491514b25475e14e02c2771d1936996eba20 Mon Sep 17 00:00:00 2001 From: Mujahid Khan <106528609+mujahidkay@users.noreply.github.com> Date: Wed, 9 Oct 2024 16:52:50 +0500 Subject: [PATCH] oops --- .github/workflows/cf-logs-fetcher.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cf-logs-fetcher.yml b/.github/workflows/cf-logs-fetcher.yml index b90ca43ca..f14301113 100644 --- a/.github/workflows/cf-logs-fetcher.yml +++ b/.github/workflows/cf-logs-fetcher.yml @@ -3,16 +3,21 @@ on: issue_comment: types: [created, edited] jobs: - fetch_comment_log: - if: ${{ (github.event.issue.pull_request) && (github.event.comment.user.login == 'cloudflare-pages[bot]' ) }} - runs-on: [ubuntu-latest] + debug_info: + runs-on: ubuntu-latest steps: - name: Debug Information run: | echo "Debugging information:" echo "Is Pull Request: ${{ github.event.issue.pull_request != null }}" echo "Comment Author: ${{ github.event.comment.user.login }}" - echo "Condition Met: ${{ (github.event.issue.pull_request != null) && (github.event.comment.user.login == 'cloudflare-pages[bot]') }}" + echo "Condition for fetch_comment_log: ${{ (github.event.issue.pull_request != null) && (github.event.comment.user.login == 'cloudflare-pages[bot]') }}" + + fetch_comment_log: + needs: debug_info + if: ${{ (github.event.issue.pull_request) && (github.event.comment.user.login == 'cloudflare-pages[bot]' ) }} + runs-on: ubuntu-latest + steps: - name: Fetch & Print The Deployment Logs uses: agoric-labs/cf-logs-fetcher@v2 with: