From 774fff4d563c3a095c2f920250c49a02c8ec5afc Mon Sep 17 00:00:00 2001 From: vsoch Date: Fri, 4 Mar 2022 00:15:06 -0700 Subject: [PATCH] forgot token Signed-off-by: vsoch --- .github/workflows/release.yaml | 1 + README.md | 2 ++ action.yml | 5 ++++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 564e234..f3e7dff 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -27,6 +27,7 @@ jobs: version: ${{ github.event.release.tag_name }} zenodo_json: .zenodo.json archive: ${{ env.archive }} + token: ${{ secrets.ZENODO_TOKEN }} - name: View Outputs env: diff --git a/README.md b/README.md index cbd579e..f3e8552 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,7 @@ jobs: - name: Run Zenodo Deploy uses: rseng/zenodo-release@main with: + token: ${{ secrets.ZENODO_TOKEN }} version: ${{ github.event.release.tag_name }} zenodo_json: .zenodo.json archive: ${{ env.archive }} @@ -67,6 +68,7 @@ If you want to see or do something with the outputs, add an `id` to the deploy s id: deploy uses: rseng/zenodo-release@main with: + token: ${{ secrets.ZENODO_TOKEN }} version: ${{ github.event.release.tag_name }} zenodo_json: .zenodo.json archive: ${{ env.archive }} diff --git a/action.yml b/action.yml index 2740bd9..e275d34 100644 --- a/action.yml +++ b/action.yml @@ -4,6 +4,9 @@ inputs: archive: description: the path to the release archive required: true + token: + description: zenodo token + required: true version: description: the release version required: true @@ -50,6 +53,6 @@ runs: archive: ${{ inputs.archive }} version: ${{ inputs.version }} ACTION_PATH: ${{ github.action_path }} - ZENODO_TOKEN: ${{ secrets.ZENODO_TOKEN }} + ZENODO_TOKEN: ${{ inputs.token }} run: python ${{ github.action_path }}/scripts/deploy.py upload ${archive} --zenodo-json ${zenodo_json} --version ${version} shell: bash