-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (33 loc) · 959 Bytes
/
generate.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
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)