-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.21 KB
/
Copy pathparse_and_generate.yml
File metadata and controls
45 lines (36 loc) · 1.21 KB
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
name: Parse and Generate
on:
schedule:
- cron: '0 1 * * *' # Run daily at 1 AM UTC
workflow_dispatch: # Allows manual triggering of the workflow
permissions:
contents: write # Grant write permissions to the repository contents
jobs:
parse_and_generate_job:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Configure Git
run: |
git config --global user.email "your-email@example.com"
git config --global user.name "Your Name"
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x' # Use the version of Python you need
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
pip install rdflib markdown
- name: Run parse and generate script
run: python REF_STDs/parse_and_generate.py
- name: Commit and Push Result
id: git_commit
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Use the automatically provided GITHUB_TOKEN
run: |
git add REF_STDs/*/*.shacl REF_STDs/*/*.json
git commit -m "Generate SHACL and JSON schema files"
git push
continue-on-error: true