Add application startup and shutdown timing logs for better performan… #35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate CITATION.cff | |
on: | |
push: | |
branches: | |
- dev | |
permissions: | |
contents: write | |
jobs: | |
generate-citation: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.13" | |
- name: Add ./src/api to PATH | |
run: | | |
echo "PYTHONPATH=$PYTHONPATH:./src/api" >> $GITHUB_ENV | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pyconfs toml pyyaml | |
- name: Generate CITATION.cff | |
run: | | |
python src/api/utils/generate_citation.py | |
- name: Check for changes | |
id: check_changes | |
run: | | |
git diff --exit-code CITATION.cff || echo "CITATION.cff has changes" | |
- name: Commit and push changes | |
if: steps.check_changes.outputs.changes == 'true' | |
run: | | |
git config --global user.name 'github-actions[bot]' | |
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
git add CITATION.cff | |
git commit -m 'Generate CITATION.cff' | |
git push | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |