-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (38 loc) · 1.23 KB
/
paper-checks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Paper checks
on:
workflow_dispatch:
inputs:
repository_url:
description: 'URL of the repository where the paper file is'
required: true
branch:
description: 'Git branch with the paper file'
required: false
issue_id:
description: 'The issue number of the submission to post the results'
required: true
wordcount:
description: 'Count the number of words in the paper file'
required: false
default: true
statement_of_need:
description: 'Look for an Statement Of Need section in the paper content'
required: false
default: true
jobs:
read-paper:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
repository: ${{ github.event.inputs.repository }}
- name: CLOC
run: |
apk add --no-cache --update cloc
cloc --quiet --report-file=cloc-results.txt ${{ github.action_path }}
- name: Post results
run: gh issue comment ${{ github.event.inputs.issue_id }} --body-file cloc-results.txt
env:
GITHUB_TOKEN: ${{ secrets.PDF_BOT_TOKEN }}
GH_REPO: ${{ github.repository }}