2021-07-20 13:49:49 +08:00
|
|
|
name: 'Suggest Related Links'
|
|
|
|
|
|
|
|
on:
|
|
|
|
issues:
|
|
|
|
types:
|
|
|
|
- opened
|
|
|
|
- edited
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
|
|
- cron: '13 13 * * */7'
|
|
|
|
|
|
|
|
jobs:
|
2021-09-18 15:49:54 +08:00
|
|
|
suggest-related-links:
|
2021-07-20 13:49:49 +08:00
|
|
|
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-
|
|
|
|
|
2021-07-20 19:22:14 +08:00
|
|
|
- uses: peaceiris/actions-suggest-related-links@v1
|
|
|
|
- uses: peaceiris/actions-suggest-related-links/models/fasttext@v1
|
2021-07-20 13:49:49 +08:00
|
|
|
if: github.event_name == 'issues'
|
|
|
|
with:
|
2021-07-20 19:22:14 +08:00
|
|
|
version: v1
|
|
|
|
- uses: peaceiris/actions-suggest-related-links@v1
|
2021-07-20 13:49:49 +08:00
|
|
|
with:
|
|
|
|
mode: 'suggest'
|
|
|
|
repository: 'peaceiris/actions-gh-pages'
|
2021-09-18 15:49:54 +08:00
|
|
|
unclickable: true
|