From 10808086167df8ea5aa748648a0904afc64bb0b2 Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Fri, 18 Sep 2020 04:21:01 +0900 Subject: [PATCH] ci: fix input.txt --- .github/workflows/suggest-related-links.yml | 5 +---- actions/src/main.ts | 3 --- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/suggest-related-links.yml b/.github/workflows/suggest-related-links.yml index ec0204c..1cf146b 100644 --- a/.github/workflows/suggest-related-links.yml +++ b/.github/workflows/suggest-related-links.yml @@ -38,7 +38,6 @@ jobs: ${{ runner.os }}-action- - uses: peaceiris/actions-suggest-related-links@v0.10.0 - if: github.event_name != 'pull_request' - name: Setup model if: github.event_name == 'issues' || github.event_name == 'pull_request' @@ -48,16 +47,14 @@ jobs: git clone https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/peaceiris/actions-suggest-related-links.git cd ./actions-suggest-related-links/models # git checkout v1.0.0 - # python3 -m pip install --upgrade pip python3 -m pip install -r ./requirements.txt - python3 -m pip check - name: fastText if: github.event_name == 'issues' run: | cd ~/actions-suggest-related-links/models/fasttext cp ~/actions-suggest-related-links-tmp/training-data.json . - echo '${{ github.event.issue.title }} ${{ github.event.issue.body }}' > input.txt + cp ~/actions-suggest-related-links-tmp/input.txt . python3 train.py -d training-data.json -test input.txt cp ./suggestions.json ~/actions-suggest-related-links-tmp/ diff --git a/actions/src/main.ts b/actions/src/main.ts index 27a4ce1..82a5e20 100644 --- a/actions/src/main.ts +++ b/actions/src/main.ts @@ -105,9 +105,6 @@ export async function run(): Promise { // unsupported mode throw new Error(`${inps.Mode} mode is not supported`); } - } else { - // unsupported event - core.warning(`[WARN] ${eventName} event is not supported`); } core.info('[INFO] completed successfully');