-
-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
138 additions
and
12 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# run all tests for crawler-user-agents (python/php) | ||
|
||
name: CI validation | ||
|
||
on: | ||
# https://stackoverflow.com/questions/64635032/github-actions-run-on-push-to-all-branches | ||
push: | ||
branches: | ||
- '**' | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- run: pip3 install jsonschema pytest | ||
- run: py.test -vv | ||
- run: python3 validate.py | ||
- run: php validate.php |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Continuous Delivery to https://www.npmjs.com/package/crawler-user-agents | ||
# for each commit, with provenance | ||
|
||
name: Deploy to NPM | ||
|
||
on: | ||
# push: | ||
# branches: | ||
# - master | ||
workflow_run: | ||
workflows: [CI validation] | ||
branches: [master] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
publish-npm: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write # To attach provenance to the published package | ||
environment: | ||
name: npm_token | ||
url: https://www.npmjs.com/package/crawler-user-agents | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
registry-url: https://registry.npmjs.org/ | ||
- run: npm install [email protected] | ||
- run: git checkout . | ||
- run: npm version --no-git-tag-version `node -e 'pacote=require("pacote");pacote.manifest("crawler-user-agents").then(pkgJson => { console.log(pkgJson.version); });'` | ||
- run: npm version --no-git-tag-version patch | ||
- run: npm publish --provenance | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,13 +14,3 @@ script: | |
- git checkout . | ||
- npm version `node -e 'pacote=require("pacote");pacote.manifest("crawler-user-agents").then(pkgJson => { console.log(pkgJson.version); });'` | ||
- npm version patch | ||
|
||
deploy: | ||
provider: npm | ||
email: [email protected] | ||
skip_cleanup: true | ||
api_key: | ||
secure: DAS1IgbrU085kpY4acrByrU2oWQq2HbP8aNye/Wb7nJIjT2Hv+DrbGoZ38Qiz8szHGmOy0DwtwJGPL6dhM7cC+2PBn5Pu6GzeORCSh+KlrRFIVI09A9BRc6TGNkJIr7ddP0H69U+OcdL53noBeMK4q2nxM6neCZM4Aa45r1jptI= | ||
on: | ||
repo: monperrus/crawler-user-agents | ||
branch: master |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -220,7 +220,7 @@ | |
, | ||
{ | ||
"pattern": "httpx", | ||
"addition_date":" 2019/12/23", | ||
"addition_date": "2019/12/23", | ||
"instances": [ | ||
"python-httpx/0.16.1", | ||
"python-httpx/0.13.0.dev1" | ||
|
@@ -265,7 +265,7 @@ | |
, | ||
{ | ||
"pattern": "phpcrawl", | ||
"addition_date": "2012-09/17", | ||
"addition_date": "2012/09/17", | ||
"url": "http://phpcrawl.cuab.de/", | ||
"instances": [ | ||
"phpcrawl" | ||
|
@@ -5223,5 +5223,72 @@ | |
"WordPress/X.X.X; https://example.com" | ||
], | ||
"url": "https://wordpress.org" | ||
}, | ||
{ | ||
"pattern": "PhxBot", | ||
"addition_date": "2024/01/06", | ||
"instances": [ | ||
"PhxBot/0.1 ([email protected])" | ||
] | ||
}, | ||
{ | ||
"pattern": "ImagesiftBot", | ||
"addition_date": "2024/01/06", | ||
"instances": [ | ||
"Mozilla/5.0 (compatible; ImagesiftBot; +imagesift.com)" | ||
], | ||
"url": "https://imagesift.com" | ||
}, | ||
{ | ||
"pattern": "Expanse", | ||
"addition_date": "2024/02/01", | ||
"instances": [ | ||
"Expanse, a Palo Alto Networks company, searches across the global IPv4 space multiple times per day to identify customers' presences on the Internet. If you would like to be excluded from our scans, please send IP addresses/domains to: [email protected]" | ||
], | ||
"url": "https://www.paloaltonetworks.com/cortex/cortex-xpanse" | ||
}, | ||
{ | ||
"pattern": "InternetMeasurement", | ||
"addition_date": "2024/02/01", | ||
"instances": [ | ||
"Mozilla/5.0 (compatible; InternetMeasurement/1.0; +https://internet-measurement.com/)" | ||
], | ||
"url": "https://internet-measurement.com" | ||
}, | ||
{ | ||
"pattern": "^BW\\/", | ||
"addition_date": "2024/02/08", | ||
"instances": [ | ||
"BW/1.1; bit.ly/3eZNDnO", | ||
"BW/1.1; rb.gy/oupwis" | ||
], | ||
"url": "https://builtwith.com/biup" | ||
}, | ||
{ | ||
"pattern": "GeedoBot", | ||
"addition_date": "2024/02/11", | ||
"instances": [ | ||
"Mozilla/5.0 (compatible; GeedoBot; +http://www.geedo.com/bot.html)" | ||
], | ||
"url": "http://www.geedo.com" | ||
}, | ||
{ | ||
"pattern": "Audisto Crawler", | ||
"addition_date": "2024/03/14", | ||
"instances": [ | ||
"Audisto Crawler (mobile; +https://audisto.com/bot)", | ||
"Audisto Crawler (desktop; +https://audisto.com/bot)", | ||
"Audisto Crawler (mobile; essential; +https://audisto.com/bot)", | ||
"Audisto Crawler (desktop; essential; +https://audisto.com/bot)" | ||
], | ||
"url": "https://audisto.com/help/crawler/bot/" | ||
}, | ||
{ | ||
"pattern": "PerplexityBot\\/", | ||
"addition_date": "2024/03/14", | ||
"instances": [ | ||
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; PerplexityBot/1.0; +https://perplexity.ai/perplexitybot)" | ||
], | ||
"url": "https://docs.perplexity.ai/docs/perplexitybot" | ||
} | ||
] |
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