Add referers-2025-03-14-142635.json #28
Workflow file for this run
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: test | |
on: | |
push: | |
tags: | |
- test* | |
permissions: | |
contents: write | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: referer-json | |
- name: Get datetime | |
id: datetime | |
run: echo "datetime=$(date "+%Y-%m-%d-%H%M%S")" >> "$GITHUB_ENV" | |
- name: Convert yaml to json | |
run: python .github/workflows/lib/yaml_to_json.py resources/referers.yml resources/referers-$datetime.json | |
- name: Prepare latest json | |
run: cp resources/referers-$datetime.json resources/referers-latest.json | |
- name: Commit and push new json files | |
run: | | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git add resources/referers-$datetime.json resources/referers-latest.json | |
git commit -m "Add referers-$datetime.json" | |
git push | |
- name: Print test referer json URLs | |
run: | | |
echo https://raw.githubusercontent.com/snowplow-referer-parser/referer-parser/refs/heads/referer-json/resources/referers-$datetime.json | |
echo https://raw.githubusercontent.com/snowplow-referer-parser/referer-parser/refs/heads/referer-json/resources/referers-latest.json |