Skip to content

Commit 3a1a134

Browse files
author
Petra Gulicher
committed
add workflow action
1 parent 779451f commit 3a1a134

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.github/workflows/query.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"method": "post",
3+
"data": {
4+
"query": "{\"query\":\"{\n repository(owner: \"designsystemau\", name: \"blog-site\") {\n name\n codeOfConduct {\n body\n }\n issues(first: 20) {\n totalCount\n nodes {\n id\n url\n number\n lastEditedAt\n createdAt\n title\n bodyHTML\n participants(first: 20) {\n totalCount\n nodes {\n id\n url\n name\n avatarUrl\n }\n }\n comments(first: 1) {\n totalCount\n nodes {\n id\n url\n lastEditedAt\n createdAt\n bodyHTML\n author {\n url\n avatarUrl\n login\n }\n }\n }\n }\n }\n pullRequests(first: 20) {\n totalCount\n nodes {\n id\n permalink\n title\n participants(first: 20) {\n totalCount\n nodes {\n id\n url\n name\n avatarUrl\n }\n }\n comments(first: 1) {\n totalCount\n nodes {\n id\n url\n lastEditedAt\n createdAt\n bodyHTML\n author {\n url\n avatarUrl\n login\n }\n }\n }\n }\n }\n }\n}\"}"
5+
}
6+
}

.github/workflows/repo-data.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: repo-data
2+
on:
3+
workflow_dispatch: {}
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
jobs:
11+
scheduled:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Setup deno
15+
uses: denoland/setup-deno@main
16+
with:
17+
deno-version: v1.x
18+
- name: Check out repo
19+
uses: actions/checkout@v2
20+
- name: Fetch data
21+
uses: githubocto/flat@v3
22+
with:
23+
http_url: "${{ env.GITHUB_GRAPHQL_URL }}"
24+
downloaded_filename: ./src/data/repo-data.json
25+
authorization: "Bearer ${{ secrets.GITHUB_TOKEN }}"
26+
axios_config: .github/workflows/query.json

0 commit comments

Comments
 (0)