-
Notifications
You must be signed in to change notification settings - Fork 151
Migrate to Github Action #239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import sys | ||
import yaml | ||
import json | ||
|
||
with open(sys.argv[1], 'r') as input: | ||
yml = yaml.safe_load(input) | ||
|
||
with open(sys.argv[2], 'w') as output: | ||
json.dump(yml, output) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: pulL_request | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Convert yaml to json | ||
run: python .github/workflows/lib/yaml_to_json.py resources/referers.yml referers.json | ||
- name: Check | ||
run: cat referers.json | ||
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,17 +17,16 @@ The latest database is always available on this URL: | |
https://s3-eu-west-1.amazonaws.com/snowplow-hosted-assets/third-party/referer-parser/referers-latest.yaml | ||
https://s3-eu-west-1.amazonaws.com/snowplow-hosted-assets/third-party/referer-parser/referers-latest.json | ||
|
||
The database is updated at most once a month. Each new version of the database is also uploaded with a timestamp: | ||
The database is updated every day. Each new version of the database is also uploaded with a timestamp: | ||
|
||
https://s3-eu-west-1.amazonaws.com/snowplow-hosted-assets/third-party/referer-parser/referers-YYYYMMDD.yaml | ||
https://s3-eu-west-1.amazonaws.com/snowplow-hosted-assets/third-party/referer-parser/referers-YYYYMMDD.json | ||
|
||
Example: | ||
|
||
https://s3-eu-west-1.amazonaws.com/snowplow-hosted-assets/third-party/referer-parser/referers-20200331.yaml | ||
https://s3-eu-west-1.amazonaws.com/snowplow-hosted-assets/third-party/referer-parser/referers-20200331.json | ||
|
||
If there is an issue with the database necessitating a re-release within the month, the corresponding files will be overwritten. | ||
|
||
## Language-specific repositories | ||
|
||
- Scala: https://github.com/snowplow-referer-parser/scala-referer-parser | ||
|
@@ -78,9 +77,7 @@ We welcome contributions to referer-parser: | |
|
||
## Support | ||
|
||
General support for referer-parser is handled by the team at Snowplow Analytics Ltd. | ||
|
||
You can contact the Snowplow Analytics team through any of the [channels listed on their wiki][talk-to-us]. | ||
General support for `referer-parser` is handled by Snowplow Analytics team on [discourse][discourse]. | ||
|
||
## Copyright and license | ||
|
||
|
@@ -90,6 +87,8 @@ You can contact the Snowplow Analytics team through any of the [channels listed | |
|
||
[snowplow]: https://github.com/snowplow/snowplow | ||
|
||
[discourse]: https://discourse.snowplow.io | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Discourse is moving to https://support.snowplow.io/hc/en-gb/community/topics/ |
||
|
||
[piwik]: http://piwik.org | ||
[piwik-search-engines]: https://github.com/piwik/piwik/blob/master/core/DataFiles/SearchEngines.php | ||
[piwik-socials]: https://github.com/piwik/piwik/blob/master/core/DataFiles/Socials.php | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please can you explain more how this github action works? I can see you cat the output file, but how does that create an asset which can be downloaded?