Skip to content

Commit

Permalink
implement override inputs for setup workflow
Browse files Browse the repository at this point in the history
and use in test
  • Loading branch information
bernt-matthias committed Feb 10, 2023
1 parent a874432 commit cb99424
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/tools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/wf_setup.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test tools
name: Setup tool tests
on:
workflow_call:
inputs:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit cb99424

Please sign in to comment.