mirror of
https://github.com/tiennm99/noitu.git
synced 2026-10-11 03:13:45 +00:00
ci(refresh-dictionary): target main now that the dev branch is gone
This commit is contained in:
1 parent
ad8a3686be
commit
f7bbfe50ad
5 files changed
+10
-11
No files matched your search
@@ -10,7 +10,7 @@ name: ci
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main, dev]
|
branches: [main]
|
||||||
pull_request:
|
pull_request:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ name: proto
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main, dev]
|
branches: [main]
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
@@ -3,15 +3,15 @@
|
|||||||
# Wikimedia regenerates the Wiktionary tiếng Việt dump every month. This
|
# Wikimedia regenerates the Wiktionary tiếng Việt dump every month. This
|
||||||
# downloads the current one, regenerates data/dictionary.txt from it — the
|
# downloads the current one, regenerates data/dictionary.txt from it — the
|
||||||
# committed corpus the image is built from — and opens a pull request against
|
# committed corpus the image is built from — and opens a pull request against
|
||||||
# dev, so a new month's words arrive as a diff someone reads before it ships.
|
# main, so a new month's words arrive as a diff someone reads before it ships.
|
||||||
#
|
#
|
||||||
# The dump run that starts on the 1st takes a few days to publish, hence the
|
# The dump run that starts on the 1st takes a few days to publish, hence the
|
||||||
# 10th. The builder fails below its word, page and meaning-coverage floors, so
|
# 10th. The builder fails below its word, page and meaning-coverage floors, so
|
||||||
# a broken month opens no pull request rather than a corpus with holes in it.
|
# a broken month opens no pull request rather than a corpus with holes in it.
|
||||||
#
|
#
|
||||||
# A pull request opened with GITHUB_TOKEN does not trigger ci.yml. The build
|
# A pull request opened with GITHUB_TOKEN does not trigger ci.yml. The build
|
||||||
# here already verifies the database it derives; the full suite runs when dev
|
# here already verifies the database it derives; the full suite runs when the
|
||||||
# is merged onward.
|
# pull request is merged.
|
||||||
name: refresh-dictionary
|
name: refresh-dictionary
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@@ -34,7 +34,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: dev
|
ref: main
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: stable
|
go-version: stable
|
||||||
@@ -73,7 +73,7 @@ jobs:
|
|||||||
- name: Open the pull request
|
- name: Open the pull request
|
||||||
uses: peter-evans/create-pull-request@v7
|
uses: peter-evans/create-pull-request@v7
|
||||||
with:
|
with:
|
||||||
base: dev
|
base: main
|
||||||
branch: dictionary-refresh
|
branch: dictionary-refresh
|
||||||
delete-branch: true
|
delete-branch: true
|
||||||
add-paths: data/dictionary.txt
|
add-paths: data/dictionary.txt
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ The dictionary is committed as text: [`data/dictionary.txt`](./data/dictionary.t
|
|||||||
every word the builder accepted from the Wiktionary tiếng Việt dump, one per line with its
|
every word the builder accepted from the Wiktionary tiếng Việt dump, one per line with its
|
||||||
meanings, and a header naming the dump and its SHA-256. Wikimedia regenerates the dump
|
meanings, and a header naming the dump and its SHA-256. Wikimedia regenerates the dump
|
||||||
monthly, and the [`refresh-dictionary`](./.github/workflows/refresh-dictionary.yml) workflow
|
monthly, and the [`refresh-dictionary`](./.github/workflows/refresh-dictionary.yml) workflow
|
||||||
opens a pull request against `dev` with the new month's corpus on the 10th, so every change
|
opens a pull request against `main` with the new month's corpus on the 10th, so every change
|
||||||
to the word list is a reviewable diff. To refresh by hand, `make fetch-dict` (downloads the
|
to the word list is a reviewable diff. To refresh by hand, `make fetch-dict` (downloads the
|
||||||
~61 MB dump) then `make refresh-dict`. Neither the dump nor `data/noitu.db` is committed. See
|
~61 MB dump) then `make refresh-dict`. Neither the dump nor `data/noitu.db` is committed. See
|
||||||
[`data/ATTRIBUTION.md`](./data/ATTRIBUTION.md).
|
[`data/ATTRIBUTION.md`](./data/ATTRIBUTION.md).
|
||||||
|
|||||||
+2
-3
@@ -391,9 +391,8 @@ the dump it came from.
|
|||||||
|
|
||||||
[`refresh-dictionary.yml`](../.github/workflows/refresh-dictionary.yml)
|
[`refresh-dictionary.yml`](../.github/workflows/refresh-dictionary.yml)
|
||||||
downloads the current dump on the 10th of every month, or on demand from the
|
downloads the current dump on the 10th of every month, or on demand from the
|
||||||
Actions tab, regenerates the corpus and opens a pull request against `dev`.
|
Actions tab, regenerates the corpus and opens a pull request against `main`.
|
||||||
Merging it, and `dev` onward to `main`, deploys the new words like any other
|
Merging it deploys the new words like any other change. The pull request does not trigger CI, because GitHub does not run
|
||||||
change. The pull request does not trigger CI, because GitHub does not run
|
|
||||||
workflows on a pull request opened with `GITHUB_TOKEN`; the builder verifies
|
workflows on a pull request opened with `GITHUB_TOKEN`; the builder verifies
|
||||||
the database before exporting the corpus, and CI runs again on the merge.
|
the database before exporting the corpus, and CI runs again on the merge.
|
||||||
GitHub disables scheduled workflows after 60 days without a commit to the
|
GitHub disables scheduled workflows after 60 days without a commit to the
|
||||||
|
|||||||
Reference in new issue
Block a user