Auto database update browser-country #505
This file contains hidden or 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: Auto database update browser-country | |
| on: | |
| schedule: | |
| - cron: '42 19 * * *' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| id-token: write | |
| jobs: | |
| release: | |
| name: Auto database update browser-country | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v6 | |
| - name: setup Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: install dependencies | |
| run: npm i | |
| - name: update | |
| run: npm run updatedb-browser-country | |
| - name: test | |
| run: npm run test | |
| - name: commit | |
| run: script/auto-update-country.sh | |
| - name: push changes | |
| uses: ad-m/github-push-action@master | |
| with: | |
| github_token: ${{secrets.GTOKEN}} |