Skip to content

Fetcher

Fetcher #1125

Workflow file for this run

name: Fetcher
on:
push:
schedule:
- cron: '0 15 * * *'
workflow_dispatch:
jobs:
generate:
name: Fetch from iana-registries
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Use Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.0
- name: Install gem
run: |
gem install relaton-cli
- name: Fetch documents
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
rm -rf data
relaton fetch-data iana-registries -f bibxml
- name: Push data
run: |
echo `date` > flag.txt
git config --global user.name "ietf-ribose-ci"
git config --global user.email "ietf-ribose-ci@users.noreply.github.com"
git add data flag.txt
git diff --quiet && git diff --staged --quiet || (git commit -m 'update documents' && git push)