Fetcher #1011
This file contains 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: 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 gh-bib-bot@llc.ietf.org | |
git add data flag.txt | |
git diff --quiet && git diff --staged --quiet || (git commit -m 'update documents' && git push) |