Skip to content

Commit

Permalink
ci: fix input.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Sep 17, 2020
1 parent b73bfe6 commit 1080808
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/suggest-related-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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/
Expand Down
3 changes: 0 additions & 3 deletions actions/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,6 @@ export async function run(): Promise<void> {
// 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');
Expand Down

0 comments on commit 1080808

Please sign in to comment.