Skip to content

Commit

Permalink
ci: run on PRs & use pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
kelly-sovacool committed Jan 9, 2024
1 parent 356b21b commit b2d9e41
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/update-citation-cff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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"

0 comments on commit b2d9e41

Please sign in to comment.