From fd54a4c7ed6df5d72e3a98bee5e3e452b669394c Mon Sep 17 00:00:00 2001 From: mvdbeek <m.vandenbeek@gmail.com> Date: Sat, 6 Feb 2021 12:56:19 +0100 Subject: [PATCH] Add github-token for workflow deployment This is needed if we want to deploy to a different repository. `planemo workflow_upload` autoamtically takes this from the environment variables. --- action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 5b129bf..0d3a30b 100644 --- a/action.yml +++ b/action.yml @@ -59,6 +59,9 @@ inputs: workflow-namespace: description: 'Github namespace under which to create workfow repositories' default: 'iwc-workflows' + github-token: + description: '(Secret!) Github PAT token. Needed for creating workflow repositories with workflow-upload' + default: '' # inputs that are needed for testing this action # not supposed to be used github-event-name-override: @@ -120,7 +123,8 @@ runs: SHED_TARGET: ${{ inputs.shed-target }} SHED_KEY: ${{ inputs.shed-key }} SETUP_CVMFS: ${{ inputs.setup-cvmfs }} - WORKFLOW_NAMESPACE: ${{ inputs.workflow-namespace }} + WORKFLOW_NAMESPACE: ${{ inputs.workflow-namespace }} + GITHUB_TOKEN: ${{ inputs.github-token }} WORKFLOWS: ${{ inputs.workflows }} GITHUB_EVENT_NAME_OVERRIDE: ${{ inputs.github-event-name-override }} GITHUB_REF_OVERRIDE: ${{ inputs.github-ref-override }}