Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

check updates from ens-normalize.js #57

Merged
merged 3 commits into from
Dec 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/check_updates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Check ens-normalize.js updates

on:
schedule:
- cron: '33 0 * * *'

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
sed -r 's/github:adraffy\/ens-normalize\.js#[0-9a-f]+/github:adraffy\/ens-normalize.js/' package.json -i
npm start

- name: Check changes
run: |
git status
git diff --exit-code --name-only
2 changes: 1 addition & 1 deletion tools/updater/package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
Loading