-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: run on PRs & use pre-commit hooks
- Loading branch information
1 parent
356b21b
commit b2d9e41
Showing
1 changed file
with
7 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 |
---|---|---|
|
@@ -7,9 +7,10 @@ | |
on: | ||
release: | ||
types: [published] | ||
push: | ||
pull_request: | ||
branches: [master, main] | ||
paths: | ||
- .github/workflows/update-citation-cff.yaml | ||
- DESCRIPTION | ||
- inst/CITATION | ||
workflow_dispatch: | ||
|
@@ -45,11 +46,14 @@ jobs: | |
cff_write(keys = mykeys) | ||
shell: Rscript {0} | ||
|
||
- name: Commit results | ||
- name: Configure git | ||
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 | ||
- uses: pre-commit/[email protected] | ||
- name: Commit results | ||
run: | | ||
git add CITATION.cff | ||
git commit -m 'chore: update CITATION.cff' || echo "No changes to commit" | ||
git push origin || echo "No changes to commit" |