Skip to content

Commit 4b3f497

Browse files
authored
Merge pull request #91 from Agoric/feat/cf-logs
ci: added cf-log-fetcher github action to fetch deployment logs
2 parents 3d6d383 + 0b823c2 commit 4b3f497

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/cf-logs-fetcher.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: CF Deployment Logs
2+
on:
3+
issue_comment:
4+
types: [created, edited]
5+
jobs:
6+
fetch_comment_log:
7+
if: ${{ (github.event.issue.pull_request) && (github.event.comment.user.login == 'cloudflare-pages[bot]' ) }}
8+
runs-on: [ubuntu-latest]
9+
steps:
10+
- name: Fetch & Print The Deployment Logs
11+
uses: agoric-labs/cf-logs-fetcher@v1
12+
with:
13+
cf_account_id: '0c4635effffcd7f36d1b9f0425a4367a'
14+
cf_project: 'dapp-psm'
15+
cf_token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
16+
17+
- name: Comment PR
18+
uses: thollander/actions-comment-pull-request@v2
19+
with:
20+
message: |
21+
Cloudflare deployment logs are available [here](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
22+
comment_tag: cflogs

0 commit comments

Comments
 (0)