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: