Skip to content

Commit f7fa495

Browse files
benjbenoguzhanunlu
authored andcommitted
Migrate to Github Action
1 parent 8eb1c63 commit f7fa495

File tree

15 files changed

+31
-263
lines changed

15 files changed

+31
-263
lines changed

.github/workflows/lib/yaml_to_json.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import sys
2+
import yaml
3+
import json
4+
5+
with open(sys.argv[1], 'r') as input:
6+
yml = yaml.safe_load(input)
7+
8+
with open(sys.argv[2], 'w') as output:
9+
json.dump(yml, output)

.github/workflows/pull_request.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: pulL_request
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Convert yaml to json
15+
run: python .github/workflows/lib/yaml_to_json.py resources/referers.yml referers.json
16+
- name: Check
17+
run: cat referers.json

.gitignore

Lines changed: 0 additions & 17 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

CHANGELOG

Lines changed: 0 additions & 17 deletions
This file was deleted.

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,16 @@ The latest database is always available on this URL:
1717
https://s3-eu-west-1.amazonaws.com/snowplow-hosted-assets/third-party/referer-parser/referers-latest.yaml
1818
https://s3-eu-west-1.amazonaws.com/snowplow-hosted-assets/third-party/referer-parser/referers-latest.json
1919

20-
The database is updated at most once a month. Each new version of the database is also uploaded with a timestamp:
20+
The database is updated every day. Each new version of the database is also uploaded with a timestamp:
2121

2222
https://s3-eu-west-1.amazonaws.com/snowplow-hosted-assets/third-party/referer-parser/referers-YYYYMMDD.yaml
2323
https://s3-eu-west-1.amazonaws.com/snowplow-hosted-assets/third-party/referer-parser/referers-YYYYMMDD.json
2424

2525
Example:
26+
2627
https://s3-eu-west-1.amazonaws.com/snowplow-hosted-assets/third-party/referer-parser/referers-20200331.yaml
2728
https://s3-eu-west-1.amazonaws.com/snowplow-hosted-assets/third-party/referer-parser/referers-20200331.json
2829

29-
If there is an issue with the database necessitating a re-release within the month, the corresponding files will be overwritten.
30-
3130
## Language-specific repositories
3231

3332
- Scala: https://github.com/snowplow-referer-parser/scala-referer-parser
@@ -78,9 +77,7 @@ We welcome contributions to referer-parser:
7877

7978
## Support
8079

81-
General support for referer-parser is handled by the team at Snowplow Analytics Ltd.
82-
83-
You can contact the Snowplow Analytics team through any of the [channels listed on their wiki][talk-to-us].
80+
General support for `referer-parser` is handled by Snowplow Analytics team on [discourse][discourse].
8481

8582
## Copyright and license
8683

@@ -90,6 +87,8 @@ You can contact the Snowplow Analytics team through any of the [channels listed
9087

9188
[snowplow]: https://github.com/snowplow/snowplow
9289

90+
[discourse]: https://discourse.snowplow.io
91+
9392
[piwik]: http://piwik.org
9493
[piwik-search-engines]: https://github.com/piwik/piwik/blob/master/core/DataFiles/SearchEngines.php
9594
[piwik-socials]: https://github.com/piwik/piwik/blob/master/core/DataFiles/Socials.php

Vagrantfile

Lines changed: 0 additions & 19 deletions
This file was deleted.

composer.json

Lines changed: 0 additions & 23 deletions
This file was deleted.

sync_data.py

Lines changed: 0 additions & 103 deletions
This file was deleted.

vagrant/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)