diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index dad4508..6a8ca57 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -25,7 +25,7 @@ jobs: - uses: actions/checkout@v4 - name: Build - run: make build-pages + run: make build-pages BUILD_NUMBER=$GITHUB_RUN_NUMBER - name: Setup Pages uses: actions/configure-pages@v4 diff --git a/Makefile b/Makefile index 0c780c5..49e200a 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,12 @@ +BUILD_NUMBER?=0 + .PHONY: init # init init: pip install -r requirements.txt build-pages: + echo "{ \"buildNumber\": \"${BUILD_NUMBER}\" }" > docs/build.json cp README.md docs/README.md cd scripts/game_id_merger && python main.py diff --git a/README.md b/README.md index 599edf3..b9d99d6 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,8 @@ responsibility for using this dataset. 由于存在各种特例,数据集中三种平台的 ID 及游戏名称均有可能重复出现,这不是错误,在要求唯一性时请自行处理。 +如果你需要自动化更新数据集,可以利用版本文件检测更新:[https://datasets.tuihub.org/build.json](https://datasets.tuihub.org/build.json) + --- *Currently, only the complete dataset is provided for download. If you need to query online, please submit an issue* @@ -53,4 +55,6 @@ Each entry in the dataset contains the following fields: - names: string array, contains multiple versions of game names in Chinese, English and Japanese, at least one Due to various special cases, the IDs and game names of the three platforms may appear repeatedly in the dataset. This -is not an error. Please handle it yourself when uniqueness is required. \ No newline at end of file +is not an error. Please handle it yourself when uniqueness is required. + +If you need to automatically update the dataset, you can use the version file to detect updates: [https://datasets.tuihub.org/build.json](https://datasets.tuihub.org/build.json)