-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (38 loc) · 1.66 KB
/
create_table.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
name: Generate and Update publications.table and publ_counter.html
on:
push:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checkout the current repository
- name: Checkout repository
uses: actions/checkout@v4
# Concatenate the .bib files
- name: Concatenate .bib files
run: cat ISASPublikationen.bib ISASPublikationen_laufend.bib ISASPreprints.bib > ISASFused.bib
# Clone the bibtexToTable repository
- name: Checkout bibtexToTable repository
run: git clone https://github.com/KIT-ISAS/bibtexToTable.git
# Install Python package dependencies
- name: Install Python packages
run: pip install bibtexparser
# Run the code from bibtexToTable
- name: Run bibtexToTable
run: python bibtexToTable/bibtex_to_table.py ISASFused.bib publications.table --verify-name "Uwe D. Hanebeck"
- name: Get script for updating table with counts
run: wget https://isas.iar.kit.edu/table/generate_publication_counts_table.py
- name: Generate table with counts
run: python generate_publication_counts_table.py ISASFused.bib 1>publ_counter.html
- name: Remove script to prevent it from being checked in
run: rm generate_publication_counts_table.py
# Commit and push using git-auto-commit-action
- name: Commit and push publications.table
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: ${{ github.ref }}
commit_message: "Update publications.table and publ_counter.html"
commit_user_name: publication-bot
commit_user_email: [email protected]