Skip to content

Commit

Permalink
Merge pull request #136 from Agoric/feat/cf-logs
Browse files Browse the repository at this point in the history
ci: added cf-log-fetcher github action to fetch deployment logs
  • Loading branch information
jkhokhar1 authored Apr 4, 2024
2 parents 5052d09 + 4917099 commit 4b69982
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/cf-logs-fetcher.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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-psm'
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 4b69982

Please sign in to comment.