Skip to content

Commit

Permalink
add default values in action.yml
Browse files Browse the repository at this point in the history
closes: #12
  • Loading branch information
atrisovic committed Jun 27, 2022
1 parent 22d180f commit 4006776
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Send repo to Dataverse
uses: IQSS/dataverse-uploader@v1.2
uses: IQSS/dataverse-uploader@v1.3
with:
DATAVERSE_TOKEN: ${{secrets.DATAVERSE_TOKEN}}
DATAVERSE_SERVER: https://demo.dataverse.org
Expand All @@ -52,7 +52,7 @@ you should add the `GITHUB_DIR` argument in your workflow, as follows:
```
steps:
- name: Send repo to Dataverse
uses: IQSS/dataverse-uploader@v1.2
uses: IQSS/dataverse-uploader@v1.3
with:
DATAVERSE_TOKEN: ${{secrets.DATAVERSE_TOKEN}}
DATAVERSE_SERVER: https://demo.dataverse.org
Expand All @@ -68,7 +68,7 @@ set the `DELETE` argument to `False` like:
```
steps:
- name: Send repo to Dataverse
uses: IQSS/dataverse-uploader@v1.2
uses: IQSS/dataverse-uploader@v1.3
with:
DATAVERSE_TOKEN: ${{secrets.DATAVERSE_TOKEN}}
DATAVERSE_SERVER: https://demo.dataverse.org
Expand All @@ -84,7 +84,7 @@ set the `PUBLISH` argument to `True`.
```
steps:
- name: Send repo to Dataverse
uses: IQSS/dataverse-uploader@v1.2
uses: IQSS/dataverse-uploader@v1.3
with:
DATAVERSE_TOKEN: ${{secrets.DATAVERSE_TOKEN}}
DATAVERSE_SERVER: https://demo.dataverse.org
Expand Down
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@ inputs:
GITHUB_DIR:
required: false
description: "upload only from specific dirs"
default: ""
DELETE:
required: false
description: "delete all files before upload"
default: 'true'
PUBLISH:
required: false
description: "publish after upload"
default: 'false'

runs:
using: "composite"
Expand Down

0 comments on commit 4006776

Please sign in to comment.