-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (36 loc) · 988 Bytes
/
fetcher.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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)