Add CITATION file [skip ci]

This commit is contained in:
Nemo 2022-04-30 16:54:25 +05:30
parent 62e3f6be5b
commit 9ca14238e6
3 changed files with 14 additions and 2 deletions

View File

@ -22,7 +22,7 @@ jobs:
# Versioning is current date
format: "YYYY.M.D"
- name: Update data
run: ./fetch.sh
run: ./fetch.sh "${{ steps.current-time.outputs.formattedTime }}"
# Only tag if we're running on the scheduled job
- uses: stefanzweifel/git-auto-commit-action@v4
if: ${{ github.event_name == 'schedule' }}

9
CITATION.cff Normal file
View File

@ -0,0 +1,9 @@
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Rana"
given-names: "Abhay"
orcid: " https://orcid.org/0000-0002-7993-1363"
title: "India ISIN Database, by Nemo"
version: 2022.4.30
url: "https://github.com/captn3m0/india-isin-database"

View File

@ -62,4 +62,7 @@ for i in E F 9; do
# Remove lines that don't start with the correct prefix
# This is to avoid ISINs like INF955L01IN9 showing up under IN9
sed -i '/^IN$i/!d' "IN$i.csv"
done
done
# Update CITATION
git diff --quiet *.csv || (sed -i "s/^version.*/version: $1/" CITATION.cff && git add CITATION.cff)