Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/check-for-updates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

on:
schedule:
- cron: '30 12 * * 3' # every Wednesday at 12:30
workflow_dispatch: {} # when manually started via "Actions" tab.

jobs:
check_code_versions:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
tool: [4c, fleur, heat, nest, pffrg]
steps:

- name: "Checkout repository content"
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0

- name: "Fetch latest repository versions"
run: |
DESCRIPTION="_codes/${{ matrix.tool }}.md"
echo "Scanning $DESCRIPTION..."
grep 'Repository: .*github.com/' $DESCRIPTION # check if repository is on github (required for API calls)
REPO="$(grep 'Repository:' $DESCRIPTION | sed -e 's%Repository.*https://github.com/%%')"
echo "Checking repository $REPO on GitHub..."
RELEASE="$(curl -sL https://api.github.com/repos/$REPO/releases/latest | jq ".tag_name")"
echo "Found latest release: $RELEASE"
DOI="https://$(curl -sL https://api.github.com/repos/$REPO/releases/latest | jq ".body" | grep -o 'doi.org/[^)]*zenodo[^)]\+' | head -n1)"
echo "Found latest DOI: $DOI"
grep $RELEASE $DESCRIPTION # check latest release is mentioned
grep $DOI $DESCRIPTION # check latest DOI is mentioned
1 change: 1 addition & 0 deletions _codes/nest.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Members: https://github.com/orgs/nest/people and https://nest-initiative.org
Research Field: Helmholtz Information
Scientific Community: Biology, Medicine, AI
Funding: See https://github.com/nest/nest-simulator/blob/master/ACKNOWLEDGMENTS.md
Repository: https://github.com/nest/nest-simulator
Programming Languages: C++, Python
License: GPL-2.0-or-later
Cite: <a href="https://doi.org/10.5281/zenodo.5886894" alt="NEST 3.2"><img src="https://zenodo.org/badge/DOI/10.5281/zenodo.5886894.svg" alt="DOI"></a>
Expand Down