-
-
Notifications
You must be signed in to change notification settings - Fork 269
45 lines (41 loc) · 1.21 KB
/
Copy pathpackage-recommendations.yml
File metadata and controls
45 lines (41 loc) · 1.21 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
name: Package recommendations
on:
issues:
types: [opened, edited, reopened]
pull_request:
branches: [bundlephobia]
paths:
- server/middlewares/similar-packages/fixtures.ts
- .github/scripts/recommendation-quality.mjs
- .github/scripts/check-recommendation-changes.mjs
- .github/workflows/package-recommendations.yml
permissions:
contents: read
jobs:
triage-issue:
if: >-
github.event_name == 'issues' &&
contains(github.event.issue.labels.*.name, 'similar suggestion')
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
steps:
- uses: actions/checkout@v4
- name: Check recommendation quality
env:
GITHUB_TOKEN: ${{ github.token }}
run: node .github/scripts/triage-package-recommendation.mjs
check-curated-data:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check newly curated packages
env:
GITHUB_TOKEN: ${{ github.token }}
run: >-
node .github/scripts/check-recommendation-changes.mjs
${{ github.event.pull_request.base.sha }}