mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
chore: add Suggest Related Links action
This commit is contained in:
parent
2c560b881f
commit
88b3cb0361
33
.github/workflows/suggest-related-links.yml
vendored
Normal file
33
.github/workflows/suggest-related-links.yml
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
name: 'Suggest Related Links'
|
||||
|
||||
on:
|
||||
issues:
|
||||
types:
|
||||
- opened
|
||||
- edited
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '13 13 * * */7'
|
||||
|
||||
jobs:
|
||||
action:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- name: Cache dependencies
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/actions-suggest-related-links-tmp
|
||||
key: ${{ runner.os }}-action-${{ hashFiles('~/actions-suggest-related-links-tmp/training-data.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-action-
|
||||
|
||||
- uses: peaceiris/actions-suggest-related-links@v1
|
||||
- uses: peaceiris/actions-suggest-related-links/models/fasttext@v1
|
||||
if: github.event_name == 'issues'
|
||||
with:
|
||||
version: v1
|
||||
- uses: peaceiris/actions-suggest-related-links@v1
|
||||
with:
|
||||
mode: 'suggest'
|
||||
repository: 'peaceiris/actions-gh-pages'
|
||||
unclickable: true
|
Loading…
Reference in New Issue
Block a user