forked from BioSchemas/specifications
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (47 loc) · 1.49 KB
/
process_profile_workflow.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
# This workflow will generate/update a/the profile HTML page each time the
# DDE genrates and update a JSON-LD in the _data/specifications folder (repo)
# test push
name: process-profile
on:
push:
branches:
- master
# pull_request:
# types: [opened, reopened]
env:
# current job token
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# inputs:
# branch-name:
# description: $`date +%Y_%m_%d-%H_%M_%S`
# required: true
jobs:
process-profile:
runs-on: ubuntu-latest
steps:
- name: Checkout Spec Repo and Retreive the Preceding Commit
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get Changed Files
id: changed-files
uses: tj-actions/changed-files@v21
- name: List Changed Files
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
echo "$file was changed"
done
- name: Setup Python 3.12.3
uses: actions/setup-python@v2
with:
python-version: 3.12.3 #install the python needed
- name: Install Python dependencies
uses: py-actions/py-dependency-install@v3
with:
path: "./.github/workflows/requirements.txt"
- name: Exectute Enrichment by Profile Ontology script
run: |
python ./.github/workflows/process_profile_script.py ${{steps.changed-files.outputs.all_changed_files}}
- name: End Workflow
run: |
echo "Something might have worked !"