Add DOI to paper.bib entry #14
Workflow file for this run
This file contains hidden or 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
name: Word Count | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
permissions: | |
contents: read | |
pull-requests: write | |
issues: write | |
jobs: | |
count-words: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Install Pandoc | |
run: sudo apt-get update && sudo apt-get install -y pandoc | |
- name: Count words in paper.md | |
id: wordcount | |
run: | | |
COUNT=$(pandoc paper/paper.md -t plain | wc -w) | |
echo "count=$COUNT" >> $GITHUB_OUTPUT | |
echo "📝 JOSS Word Count: $COUNT words" | |
if [ "$COUNT" -gt 1000 ]; then | |
echo "::warning title=JOSS Word Count::Paper exceeds 1000 words ($COUNT)." | |
fi | |
- name: Comment on PR with word count | |
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository | |
uses: marocchino/sticky-pull-request-comment@v2 | |
with: | |
header: joss-wordcount | |
message: | | |
📝 **JOSS Word Count** | |
The current word count for `paper.md` is **${{ steps.wordcount.outputs.count }}** words. | |
_(JOSS recommends 250-1000 words for the main text.)_ |