forked from strapi/strapi
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.69 KB
/
Copy pathcommunity-pr-report.yml
File metadata and controls
46 lines (41 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Runs every Monday at 9am UTC (also manually triggerable).
# Generates a Linear project status update and a full Notion report page.
name: Community PR — Weekly Report
on:
schedule:
- cron: '0 9 * * 1' # Monday 9am UTC — runs weekly-report + posts to Notion
workflow_dispatch:
inputs:
mode:
description: 'Report type'
required: true
type: choice
options:
- linear-weekly-report
- linear-weekly-report-notion
- notion-report
default: linear-weekly-report
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
report:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- name: Run report
uses: ./.github/actions/community-pr-triage
with:
mode: ${{ github.event_name == 'schedule' && 'linear-weekly-report' || (inputs.mode == 'notion-report' && 'notion-report' || 'linear-weekly-report') }}
post-to-notion: ${{ github.event_name == 'schedule' || inputs.mode == 'linear-weekly-report-notion' || inputs.mode == 'notion-report' }}
github-token: ${{ secrets.GITHUB_TOKEN }}
linear-api-key: ${{ secrets.LINEAR_API_KEY }}
linear-cpr-team-id: ${{ vars.LINEAR_CPR_TEAM_ID }}
linear-cms-team-id: ${{ vars.LINEAR_CMS_TEAM_ID }}
linear-project-id: ${{ vars.LINEAR_PROJECT_ID }}
linear-triage-view-url: 'https://linear.app/strapi/team/CPR/triage'
linear-labels: ${{ vars.LINEAR_LABELS }}
linear-triage-state-id: ${{ vars.LINEAR_TRIAGE_STATE_ID }}
notion-api-key: ${{ secrets.NOTION_API_KEY }}
notion-database-id: ${{ vars.NOTION_DATABASE_ID }}