Skip to content

Commit 6805ae0

Browse files
authored
Show the generated CITATION.cff
1 parent 7b7b3fb commit 6805ae0

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/codemeta2cff.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ run-name: Generate CITATION.cff after ${{github.event_name}} by ${{github.actor}
88
on:
99
push:
1010
paths:
11-
- 'codemeta.json'
11+
- "codemeta.json"
1212
workflow_dispatch:
1313
inputs:
1414
reason:
15-
description: 'Reason for manual trigger'
15+
description: "Reason for manual trigger"
1616
required: false
17-
default: 'Manual trigger'
17+
default: "Manual trigger"
1818

1919
jobs:
2020
generate-and-validate:
@@ -28,11 +28,17 @@ jobs:
2828
- name: Generate CITATION.cff from codemeta.json
2929
uses: caltechlibrary/codemeta2cff@99ce10831c3037a067c3d9551d455638e0b438ac #v0.3.3
3030

31+
- name: Show generated CITATION.cff
32+
run: |
33+
printf '```yaml\n' >> $GITHUB_STEP_SUMMARY
34+
cat CITATION.cff >> $GITHUB_STEP_SUMMARY
35+
printf '\n```' >> $GITHUB_STEP_SUMMARY
36+
3137
- name: Validate CITATION.cff
3238
uses: dieghernan/cff-validator@114aae53e1850c3757733beb60036941900e3dc3 #v4
3339

3440
- name: Commit and push updated CITATION.cff
3541
uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 #v9.1.4
3642
with:
37-
message: 'Update CITATION.cff from codemeta.json'
38-
add: 'CITATION.cff'
43+
message: "Update CITATION.cff from codemeta.json"
44+
add: "CITATION.cff"

0 commit comments

Comments
 (0)