diff --git a/.github/workflows/cutword.yml b/.github/workflows/cutword.yml index 4619133..6ca2aeb 100644 --- a/.github/workflows/cutword.yml +++ b/.github/workflows/cutword.yml @@ -1,7 +1,9 @@ on: push: paths: - - 'cutword/**' + - 'cutword/Cargo.lock' + - 'cutword/Cargo.toml' + - 'cutword/src/**' name: Prebuild word segmenter diff --git a/cutword/nyx_bot-cutword.py b/cutword/nyx_bot-cutword.py old mode 100644 new mode 100755 index 91d04d9..458dc0f --- a/cutword/nyx_bot-cutword.py +++ b/cutword/nyx_bot-cutword.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 import sys from jieba import posseg