From b6800ba49b6d5c25bbfed56332ab4dfc8d64cffa Mon Sep 17 00:00:00 2001 From: Nemo Date: Tue, 31 Oct 2023 23:18:45 +0530 Subject: [PATCH] Adds citation --- .github/workflows/update-data.yml | 4 ++++ CITATION.cff | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 CITATION.cff diff --git a/.github/workflows/update-data.yml b/.github/workflows/update-data.yml index e440a1a..6ff0c69 100644 --- a/.github/workflows/update-data.yml +++ b/.github/workflows/update-data.yml @@ -17,6 +17,10 @@ jobs: - name: Update data run: > curl --request GET --url 'https://prod.plugo.io/api/v2/goblin/stores?lat=18.46448805396234&lng=72.12753139436244&radius=90999999' --header 'Authorization: Bearer ${{secrets.token}}' > _data/plugo.json + export VERSION=`date +%Y.%-m.%-d` + sed -i "s/^version.*/version: $(VERSION)/" CITATION.cff + sed -i "s/^date-released.*/date-released: `date --rfc-3339=date`/" CITATION.cff + # TODO: Add tag for date as well - uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: Update Plugo Data diff --git a/CITATION.cff b/CITATION.cff new file mode 100644 index 0000000..3445f42 --- /dev/null +++ b/CITATION.cff @@ -0,0 +1,18 @@ +cff-version: 1.2.0 +message: "If you use this dataset, please cite it as below." +authors: +- family-names: "Rana" + given-names: "Abhay" + orcid: https://orcid.org/0000-0002-7993-1363 +title: "Plugo Power Bank Location Data, by Nemo" +version: 2023.10.31 +url: "https://github.com/captn3m0/india-isin-data" +date-released: 2023-10-31 +preferred-citation: + url: "https://github.com/captn3m0/plugo" + type: data + authors: + - family-names: "Rana" + given-names: "Abhay" + orcid: "https://orcid.org/0000-0002-7993-1363" + title: "Plugo Power Bank Location Data, by Nemo"