From fbe8bdf5174108dd1fb4dd78780effc33a2be740 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Wr=C3=B3bel?= Date: Thu, 14 Dec 2023 11:43:44 +0100 Subject: [PATCH 1/3] check updates from ens-normalize.js --- .github/workflows/check_updates.yml | 35 +++++++++++++++++++++++++++++ tools/updater/package.json | 2 +- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/check_updates.yml diff --git a/.github/workflows/check_updates.yml b/.github/workflows/check_updates.yml new file mode 100644 index 0000000..c532f18 --- /dev/null +++ b/.github/workflows/check_updates.yml @@ -0,0 +1,35 @@ +name: Check ens-normalize.js updates + +on: + schedule: + - cron: '*/5 * * * *' + +jobs: + test: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Install poetry + run: pipx install poetry + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.11 + cache: "poetry" + + - name: Install dependencies + run: poetry install + + - name: Update + run: | + cd tools/updater + npm start + + - name: Check changes + run: | + git status + git diff --exit-code --name-only diff --git a/tools/updater/package.json b/tools/updater/package.json index 51604a2..12bac95 100644 --- a/tools/updater/package.json +++ b/tools/updater/package.json @@ -1,7 +1,7 @@ { "type": "module", "scripts": { - "start": "python update_ens.py" + "start": "poetry run python update_ens.py" }, "dependencies": { "@adraffy/ens-normalize": "github:adraffy/ens-normalize.js#52ce1a2fb22b86416f23a481c956bc74368c35a7" From 56bf46728b3b5a391d9f1317543e47de6c027f04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Wr=C3=B3bel?= Date: Thu, 14 Dec 2023 11:45:22 +0100 Subject: [PATCH 2/3] change schedule --- .github/workflows/check_updates.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check_updates.yml b/.github/workflows/check_updates.yml index c532f18..4a53e17 100644 --- a/.github/workflows/check_updates.yml +++ b/.github/workflows/check_updates.yml @@ -2,7 +2,7 @@ name: Check ens-normalize.js updates on: schedule: - - cron: '*/5 * * * *' + - cron: '33 0 * * *' jobs: test: From dbb5014c8947128eeb67613608213f055e2942c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Wr=C3=B3bel?= Date: Fri, 15 Dec 2023 15:57:10 +0100 Subject: [PATCH 3/3] update to head --- .github/workflows/check_updates.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/check_updates.yml b/.github/workflows/check_updates.yml index 4a53e17..ecfb556 100644 --- a/.github/workflows/check_updates.yml +++ b/.github/workflows/check_updates.yml @@ -27,6 +27,7 @@ jobs: - name: Update run: | cd tools/updater + sed -r 's/github:adraffy\/ens-normalize\.js#[0-9a-f]+/github:adraffy\/ens-normalize.js/' package.json -i npm start - name: Check changes