Skip to content

Commit

Permalink
Download CI Test: Set dev as the default branch and add customisation…
Browse files Browse the repository at this point in the history
… option for manual dispatch.
  • Loading branch information
MatthiasZepper committed Feb 2, 2024
1 parent 06f4e7d commit a6fd062
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ name: Test successful pipeline download with 'nf-core download'
# - the head branch of the pull request is updated, i.e. if fixes for a release are pushed last minute to dev.
on:
workflow_dispatch:
inputs:
testbranch:
description: "The branch to test the pipeline download."
required: true
default: "dev"
pull_request:
types:
- opened
Expand Down Expand Up @@ -42,7 +47,7 @@ jobs:
run: |
echo "REPO_LOWERCASE=${GITHUB_REPOSITORY,,}" >> ${GITHUB_ENV}
echo "REPOTITLE_LOWERCASE=$(basename ${GITHUB_REPOSITORY,,})" >> ${GITHUB_ENV}
echo "REPO_BRANCH=${GITHUB_REF#refs/heads/}" >> ${GITHUB_ENV}
echo "REPO_BRANCH=${{ github.event.inputs.testbranch || 'dev' }}" >> ${GITHUB_ENV}
- name: Download the pipeline
env:
Expand Down

0 comments on commit a6fd062

Please sign in to comment.