-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (32 loc) · 963 Bytes
/
parseCSV.yaml
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
name: Parse JETSCAPE_Authors.csv
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
csv-parser:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
token: ${{ secrets.PROTECTED_BRANCH_TOKEN }}
# run the python script to parse the csv file
- name: Parse CSV
run: |
cd $GITHUB_WORKSPACE/scripts
python3 parseAuthors.py $GITHUB_WORKSPACE JETSCAPE_Authors.csv JETSCAPE_Authors.json
- name: Commit changed files
uses: stefanzweifel/git-auto-commit-action@v2.3.0
with:
commit_message: updated authors list json file
branch: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}