Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Corresponding Dockerfile: https://github.com/JabRef/jabref/blob/main/Dockerfile.jabkit
Comment thread
evealitaylor marked this conversation as resolved.
# Corresponding Dockerfile: https://github.com/JabRef/jabref/blob/main/Dockerfile.jabkit
FROM ghcr.io/jabref/jabkit:edge

ENTRYPOINT ["/jabref/jabkit/bin/jabkit"]
COPY entrypoint.sh /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:

### Output

The action generates a consistency check report as a Markdown table.
This is automatically added to the [Job summary](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-commands#example-of-adding-a-job-summary) of your workflow run.

| entry type | citation key | Eprint | File | Number | Pages | URL |
| ---------- | -------------- | ------ | ---- | ------ | ----- | --- |
| Article | Cooper_2007 | - | - | o | o | - |
Expand Down
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.bibfile }}
- check-consistency
- --input=${{ inputs.bibfile }}
- --porcelain
17 changes: 17 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -o pipefail

echo "## $1" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY

shift

/jabref/jabkit/bin/jabkit "$@" 2>&1 | tee -a "$GITHUB_STEP_SUMMARY"

exit_code=${PIPESTATUS[0]}

if [ "$exit_code" -eq 0 ]; then
echo "✅ no inconsistencies" | tee -a "$GITHUB_STEP_SUMMARY"
fi

exit "$exit_code"