-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
98 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,4 @@ datamanagement.R | |
^revdep$ | ||
^CRAN-RELEASE$ | ||
^data-raw$ | ||
^CITATION\.cff$ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples | ||
# The action runs when: | ||
# - A new release is published | ||
# - The DESCRIPTION or inst/CITATION are modified | ||
# - Can be run manually | ||
# For customizing the triggers, visit https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows | ||
on: | ||
release: | ||
types: [published] | ||
push: | ||
branches: main | ||
paths: | ||
- DESCRIPTION | ||
- inst/CITATION | ||
workflow_dispatch: | ||
|
||
name: Update CITATION.cff | ||
|
||
jobs: | ||
update-citation-cff: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: r-lib/actions/setup-r@v2 | ||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
extra-packages: | | ||
any::cffr | ||
any::V8 | ||
- name: Update CITATION.cff | ||
run: | | ||
library(cffr) | ||
# Create your CITATION.cff file | ||
cff_write(dependencies = FALSE) | ||
shell: Rscript {0} | ||
|
||
- name: Commit results | ||
run: | | ||
git config --local user.name "$GITHUB_ACTOR" | ||
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com" | ||
git add CITATION.cff | ||
git commit -m 'Update CITATION.cff' || echo "No changes to commit" | ||
git push origin || echo "No changes to commit" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# ----------------------------------------------------------- | ||
# CITATION file created with {cffr} R package, v0.3.0 | ||
# See also: https://docs.ropensci.org/cffr/ | ||
# ----------------------------------------------------------- | ||
|
||
cff-version: 1.2.0 | ||
message: 'To cite package "opencage" in publications use:' | ||
type: software | ||
license: GPL-2.0-or-later | ||
title: 'opencage: Geocode with the OpenCage API' | ||
version: 0.2.2.9000 | ||
abstract: Geocode with the OpenCage API, either from place name to longitude and latitude | ||
(forward geocoding) or from longitude and latitude to the name and address of a | ||
location (reverse geocoding), see <https://opencagedata.com>. | ||
authors: | ||
- family-names: Possenriede | ||
given-names: Daniel | ||
email: possenriede+r@gmail.com | ||
orcid: https://orcid.org/0000-0002-6738-9845 | ||
- family-names: Sadler | ||
given-names: Jesse | ||
orcid: https://orcid.org/0000-0001-6081-9681 | ||
- family-names: Salmon | ||
given-names: Maëlle | ||
orcid: https://orcid.org/0000-0002-2815-0399 | ||
repository: https://CRAN.R-project.org/package=opencage | ||
repository-code: https://github.com/ropensci/opencage | ||
url: https://docs.ropensci.org/opencage/ | ||
contact: | ||
- family-names: Possenriede | ||
given-names: Daniel | ||
email: possenriede+r@gmail.com | ||
orcid: https://orcid.org/0000-0002-6738-9845 | ||
keywords: | ||
- geocode | ||
- geocoder | ||
- opencage | ||
- opencage-api | ||
- opencage-geocoder | ||
- peer-reviewed | ||
- placenames | ||
- r | ||
- r-package | ||
- rspatial | ||
- rstats |
This file contains 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
This file contains 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
This file contains 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