From cb99424efcb6b2d2d54edc37a6051246e9e6e0e4 Mon Sep 17 00:00:00 2001 From: Matthias Bernt Date: Fri, 10 Feb 2023 12:17:04 +0100 Subject: [PATCH] implement override inputs for setup workflow and use in test --- .github/workflows/tools.yaml | 1 + .github/workflows/wf_setup.yaml | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tools.yaml b/.github/workflows/tools.yaml index b9106c0..3ba900e 100644 --- a/.github/workflows/tools.yaml +++ b/.github/workflows/tools.yaml @@ -91,6 +91,7 @@ jobs: # default-galaxy-fork: galaxyproject # default-galaxy-branch: release_22.05 max-chunks: 40 + github-event-name-override: 'schedule' secrets: PAT: ${{ secrets.PAT }} diff --git a/.github/workflows/wf_setup.yaml b/.github/workflows/wf_setup.yaml index b1c553f..bba67ae 100644 --- a/.github/workflows/wf_setup.yaml +++ b/.github/workflows/wf_setup.yaml @@ -1,4 +1,4 @@ -name: Test tools +name: Setup tool tests on: workflow_call: inputs: @@ -31,6 +31,17 @@ on: default: "[\"3.7\"]" required: false type: string + ## supposed to be used in internal testing only + github-event-name-override: + description: 'ONLY FOR TESTING: override GITHUB_EVENT_NAME' + default: '' + required: false + type: string + github-ref-override: + description: 'ONLY FOR TESTING: override GITHUB_REF' + default: '' + required: false + type: string secrets: PAT: required: false @@ -157,6 +168,8 @@ jobs: max-chunks: ${{ inputs.max-chunks }} python-version: ${{ matrix.python-version }} planemo-version: ${{ needs.fork-branch.outputs.planemo-version }} + github-event-name-override: ${{ inputs.github-event-name-override }} + github-ref-override: ${{ inputs.github-ref-override }} - name: Show commit range run: echo '${{ steps.discover.outputs.commit-range }}' - name: Show repository list