Skip to content

Commit

Permalink
Update citation to use system date if not specified in DESCRIPTION (#669
Browse files Browse the repository at this point in the history
)

* use `Sys.Date()` if `meta$Date` is not available

* rebuild CITATION.cff

* activate and update citation action

* update cran comments

* Increment version number to 1.5.1
  • Loading branch information
sbfnk authored May 14, 2024
1 parent a29d4d7 commit 611cf94
Show file tree
Hide file tree
Showing 6 changed files with 199 additions and 175 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/update-citation-cff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,23 @@
# For customizing the triggers, visit https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows
on:
push:
tags-ignore:
- '*'
branches:
- main
paths:
- DESCRIPTION
- inst/CITATION
- .github/workflows/update-citation-cff.yaml
workflow_dispatch:

name: Update CITATION.cff
permissions:
contents: write
pull-requests: write


jobs:
update-citation-cff:
runs-on: macos-latest
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
Expand Down Expand Up @@ -46,14 +50,13 @@ jobs:
shell: Rscript {0}

- name: Commit results
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add CITATION.cff
git commit -m 'Update CITATION.cff' || echo "No changes to commit"
git pull --rebase origin ${{ github.ref.name }}
git push origin || echo "No changes to commit"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: Update `CITATION.cff`
title: Update `CITATION.cff`
body: |
This pull request updates the citation file, ensuring all authors are credited and there are no discrepancies.
Please verify the changes before merging.
branch: update-citation-cff
Loading

0 comments on commit 611cf94

Please sign in to comment.