Skip to content

Commit

Permalink
Merge pull request #81 from xuanxu/crossref
Browse files Browse the repository at this point in the history
Update workflows to use custom PDF & Crossref action
  • Loading branch information
lucaferranti committed Mar 22, 2024
2 parents d98dfa6 + 5b16cb3 commit 12e8a5a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 33 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/accept.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,11 @@ jobs:
steps:
- name: Compile Paper
id: generate-files
uses: xuanxu/paper-action@main
uses: openjournals/gh-action-juliacon-pdf-generation@main
with:
repository_url: ${{ github.event.inputs.repository_url }}
branch: ${{ github.event.inputs.branch }}
issue_id: ${{ github.event.inputs.issue_id }}
journal: jcon
compile_mode: accepted
- name: Upload files to papers repo
id: upload-files
uses: xuanxu/upload-files-action@main
Expand All @@ -43,15 +41,7 @@ jobs:
branch_prefix: jcon
issue_id: ${{ github.event.inputs.issue_id }}
pdf_path: ${{ steps.generate-files.outputs.pdf_path}}
jats_path: ${{ steps.generate-files.outputs.jats_path}}
crossref_path: ${{ steps.generate-files.outputs.crossref_path}}
- name: Validate metadata files
id: validate-xml
uses: xuanxu/validate-xml-files-action@main
with:
jats_path: ${{ steps.generate-files.outputs.jats_path}}
crossref_path: ${{ steps.generate-files.outputs.crossref_path}}
validation_mode: strict
- name: Create and Merge Pull Request
id: pull-request
uses: xuanxu/deposit-pull-request-action@main
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/draft-paper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
branch_prefix: jcon
issue_id: ${{ github.event.inputs.issue_id }}
pdf_path: ${{ steps.generate-files.outputs.pdf_path}}
crossref_path: ${{ steps.generate-files.outputs.crossref_path }}
- name: Reply message
if: ${{ success() }}
run: |
Expand Down
12 changes: 1 addition & 11 deletions .github/workflows/reaccept.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ jobs:
steps:
- name: Compile Paper
id: generate-files
uses: xuanxu/paper-action@main
uses: openjournals/gh-action-juliacon-pdf-generation@main
with:
repository_url: ${{ github.event.inputs.repository_url }}
branch: ${{ github.event.inputs.branch }}
issue_id: ${{ github.event.inputs.issue_id }}
journal: jcon
compile_mode: accepted
- name: Update paper files
id: update-files
uses: xuanxu/update-files-action@main
Expand All @@ -39,15 +37,7 @@ jobs:
branch_prefix: jcon
issue_id: ${{ github.event.inputs.issue_id }}
pdf_path: ${{ steps.generate-files.outputs.pdf_path}}
jats_path: ${{ steps.generate-files.outputs.jats_path}}
crossref_path: ${{ steps.generate-files.outputs.crossref_path}}
- name: Validate metadata files
id: validate-xml
uses: xuanxu/validate-xml-files-action@main
with:
jats_path: ${{ steps.generate-files.outputs.jats_path}}
crossref_path: ${{ steps.generate-files.outputs.crossref_path}}
validation_mode: strict
- name: Create and Merge Pull Request
id: pull-request
uses: xuanxu/deposit-pull-request-action@main
Expand Down
12 changes: 1 addition & 11 deletions .github/workflows/recommend-acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,11 @@ jobs:
steps:
- name: Compile Paper
id: generate-files
uses: xuanxu/paper-action@main
uses: openjournals/gh-action-juliacon-pdf-generation@main
with:
repository_url: ${{ github.event.inputs.repository_url }}
branch: ${{ github.event.inputs.branch }}
issue_id: ${{ github.event.inputs.issue_id }}
journal: jcon
compile_mode: accepted
- name: Upload files to papers repo
id: upload-files
uses: xuanxu/upload-files-action@main
Expand All @@ -43,7 +41,6 @@ jobs:
branch_prefix: jcon
issue_id: ${{ github.event.inputs.issue_id }}
pdf_path: ${{ steps.generate-files.outputs.pdf_path}}
jats_path: ${{ steps.generate-files.outputs.jats_path}}
crossref_path: ${{ steps.generate-files.outputs.crossref_path}}
- name: Open Pull Request
id: open-pr
Expand All @@ -54,13 +51,6 @@ jobs:
branch_prefix: jcon
issue_id: ${{ github.event.inputs.issue_id }}
mode: dry-run
- name: Validate metadata files
id: validate-xml
uses: xuanxu/validate-xml-files-action@main
with:
jats_path: ${{ steps.generate-files.outputs.jats_path}}
crossref_path: ${{ steps.generate-files.outputs.crossref_path}}
validation_mode: strict
- name: Reply message
if: ${{ success() }}
run: |
Expand Down

0 comments on commit 12e8a5a

Please sign in to comment.