Check ens-normalize.js updates #76
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check ens-normalize.js updates | |
on: | |
schedule: | |
- cron: '33 0 * * *' | |
jobs: | |
check_updates: | |
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 -- . ':!tools/updater/package-lock.json' ':!tools/updater/package.json' |