Skip to content

Commit

Permalink
ci: fix cronjob
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jan 8, 2024
1 parent d09a788 commit 2805aac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ jobs:
git config --global user.email ${{ secrets.GIT_EMAIL }}
git config --global user.name ${{ secrets.GIT_USERNAME }}
DEBUG="ua*" node bin/update.js
git add index.json
git add src/index.json src/desktop.json src/mobile.json
git commit -m 'build(update): user agents' --no-verify
git push origin ${{ github.head_ref }} || true
curl -fsS -m 10 --retry 5 -o /dev/null https://hc-ping.com/2345b25e-fe7d-4efd-b085-5886e6c85cc7
flush:
depends-on: [update]
needs: [update]
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
"description": "A list of most common User Agent.",
"homepage": "https://microlink.io/user-agents",
"version": "2.1.0",
"exports": {
".": "./src/index.js",
"./desktop": "./src/desktop.js",
"./mobile": "./src/mobile.js"
},
"author": {
"email": "[email protected]",
"name": "microlink.io",
Expand Down Expand Up @@ -62,7 +57,8 @@
"simple-git-hooks": "latest",
"standard": "latest",
"standard-markdown": "latest",
"standard-version": "latest"
"standard-version": "latest",
"ua-parser-js": "latest"
},
"files": [
"src"
Expand All @@ -87,6 +83,11 @@
"@commitlint/config-conventional"
]
},
"exports": {
".": "./src/index.js",
"./desktop": "./src/desktop.js",
"./mobile": "./src/mobile.js"
},
"nano-staged": {
"*.js": [
"prettier-standard",
Expand Down

0 comments on commit 2805aac

Please sign in to comment.