-
Notifications
You must be signed in to change notification settings - Fork 10
59 lines (46 loc) · 1.47 KB
/
auto_create_purls.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: auto_create_purls
on:
schedule:
- cron: '1 0 * * 6'
workflow_dispatch:
jobs:
extract_terms_without_purls:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: remove previous chrome
run: sudo apt purge google-chrome-stable
- name: install requests
run: |
pip install chromedriver-autoinstaller
pip install pyvirtualdisplay
pip install requests
pip install selenium
- name: Install xvfb
run: sudo apt-get install xvfb
- name: extract all dpbo terms
run: |
grep -E 'id: DPBO:[0-9]+' dpbo.obo > missing_purls.txt
- name: extract TANs and replace colon
run: |
sed -i 's/id: DPBO:\([0-9]\+\)/DPBO_\1/g' missing_purls.txt
- name: run purl verification script
run: python .github/workflows/verify_purls.py
- name: run purl creation
env:
MY_MAIL: ${{ secrets.PURL_USERNAME }}
MY_PW: ${{ secrets.PURL_PASSWORD }}
run: python .github/workflows/create_purls.py
- name: remove temporary new files
run: |
rm missing_purls.txt
- name: commit and push
uses: mikeal/publish-to-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH_NAME: 'main'