-
Notifications
You must be signed in to change notification settings - Fork 134
104 lines (87 loc) · 3.05 KB
/
tool_list_conversion.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: Validation of the tools and page metadata
on:
pull_request:
branches: [ master, main ]
schedule:
- cron: '0 13 * * 1'
workflow_dispatch:
jobs:
validation:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruamel.yaml requests python-frontmatter
- name: Run tool table 2 yaml
run: |
python var/conversions.py
registry-lookup:
if: |
github.repository_owner == 'elixir-europe' && github.event_name != 'pull_request'
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruamel.yaml requests python-frontmatter
- name: Run regsitry lookup for the tools file
run: |
python var/conversions.py --reg --username ${{ secrets.FAIRSHARING_USERNAME }} --password "${{ secrets.FAIRSHARING_PASSWORD }}"
- name: Fetch country names with corresponding iso
run: |
python var/country_list.py
- name: Update markdown pages with DSW links
run: |
python var/dsw_integration.py
- name: Get faircookbook-rdmkit repository
uses: actions/checkout@v3
with:
repository: elixir-europe/faircookbook-rdmkit
path: faircookbook-rdmkit
ref: main
- name: Update markdown pages with FAIR Cookbook links
run: |
python var/faircookbook_integration.py ${GITHUB_WORKSPACE}/faircookbook-rdmkit/faircookbook_rdmkit_mapping.yml
- name: Deleting faircookbook-rdmkit repository
run: |
rm -r faircookbook-rdmkit
- name: Show differences
run: |
git diff --stat
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update tool/resource_list.yaml
title: 'Automatic tool/resource-list update'
body: |
This PR is automatically generated based on changes in the main_tool_and_resource_list.csv file or based on new links made between the tool table and TeSS.
Please verify if these changes are valid.
labels: |
automatic PR
reviewers: bedroesb
branch: list_updates
base: master
- name: Check output
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"