Skip to content

Commit

Permalink
added cf-log-fetcher github action to fetch deployment logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jkhokhar1 authored Apr 3, 2024
1 parent 3d6d383 commit fcd7519
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/cf-logs-fetcher.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CF Deployment Logs
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]
steps:

- name: Fetch & Print The Deployment Logs
uses: agoric-labs/cf-logs-fetcher@v1
with:
cf_account_id: "0c4635effffcd7f36d1b9f0425a4367a"
cf_project: "dapp-econ-gov"
cf_token: ${{ secrets.CLOUDFLARE_API_TOKEN }}

- name: Comment PR
uses: thollander/actions-comment-pull-request@v2
with:
message: |
Cloudflare deployment logs are available [here](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
comment_tag: cflogs

0 comments on commit fcd7519

Please sign in to comment.