Skip to content

Fetcher

Fetcher #1061

Workflow file for this run

name: Fetcher
on:
push:
schedule:
- cron: '0 15 * * *'
workflow_dispatch:
jobs:
fetch:
name: rfcsubseries data fetching
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Checkout source
uses: actions/checkout@v2
with:
repository: ietf-tools/bibxml-data-misc
path: bibxml-data-misc
- name: Use Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
- name: Install gem
run: |
gem install relaton-ieee -v 1.16.3
- name: Fetch documents
run: |
rm -rf data
ruby converter.rb
- name: Push data
run: |
echo `date` > flag.txt
git config user.name ietf-bib-bot
git config user.email [email protected]
git add data flag.txt
git diff --quiet && git diff --staged --quiet || (git commit -m 'update documents' && git push)