Skip to content

Commit 7cc60ac

Browse files
authored
Create retract.yml
1 parent 371818e commit 7cc60ac

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/retract.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Retract paper
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
issue_id:
6+
description: 'The issue number of the retracted paper review'
7+
required: true
8+
retraction_notice_url:
9+
description: 'URL for the markdown file of the retraction notice'
10+
required: true
11+
mode:
12+
description: Set the compiled retraction notice as a draft or as a final published paper. Posible values are 'draft' or 'final'.
13+
required: false
14+
default: draft
15+
jobs:
16+
retraction-notice:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Generate retraction notice
20+
id: generate-retraction
21+
uses: xuanxu/retraction-action@main
22+
with:
23+
retraction_notice_url: ${{ github.event.inputs.retraction_notice_url }}
24+
issue_id: ${{ github.event.inputs.issue_id }}
25+
journal: joss
26+
papers_repo: openjournals/joss-papers
27+
papers_repo_main_branch: master
28+
branch_prefix: joss
29+
github_bot_token: ${{ secrets.BOT_TOKEN }}
30+
journal_secret: ${{ secrets.JOSS_SECRET }}
31+
crossref_username: ${{ secrets.CROSSREF_USERNAME }}
32+
crossref_password: ${{ secrets.CROSSREF_PASSWORD }}
33+
mode: ${{ github.event.inputs.mode }}

0 commit comments

Comments
 (0)