-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 1.05 KB
/
run_kape2orc.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
name: Run kape2orc script daily
on:
schedule:
- cron: '0 0 * * *' # This sets the action to run daily at midnight UTC
workflow_dispatch: # This allows the workflow to be manually triggered
jobs:
kape2orc:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x' # Specify the version of Python needed
- name: Install required libraries
run: |
python -m pip install --upgrade pip
pip install requests
- name: Execute kape2orc.py with update option
run: |
python kape2orc.py --update --source kape --target orc
- name: Commit and push changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Update KAPE files and convert to ORC XML"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}