From 4006776c86e592613769fedbc4d174a54168bb5e Mon Sep 17 00:00:00 2001 From: Ana Trisovic Date: Mon, 27 Jun 2022 15:34:12 -0400 Subject: [PATCH] add default values in action.yml closes: #12 --- README.md | 8 ++++---- action.yml | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index baf3b17..36f54fc 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/action.yml b/action.yml index 62b7768..fdfc47c 100644 --- a/action.yml +++ b/action.yml @@ -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"