Skip to content

Commit d22d415

Browse files
authored
Added cf-log-fetcher github action to fetch deployment logs (#1055)
1 parent d59cfa6 commit d22d415

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

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

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
11+
- name: Fetch & Print The Deployment Logs
12+
uses: agoric-labs/cf-logs-fetcher@v1
13+
with:
14+
cf_account_id: "0c4635effffcd7f36d1b9f0425a4367a"
15+
cf_project: "documentation"
16+
cf_token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
17+
18+
- name: Comment PR
19+
uses: thollander/actions-comment-pull-request@v2
20+
with:
21+
message: |
22+
Cloudflare deployment logs are available [here](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
23+
comment_tag: cflogs

0 commit comments

Comments
 (0)