Skip to content

Commit

Permalink
use nextflow.config to set defaultBranch
Browse files Browse the repository at this point in the history
  • Loading branch information
mashehu committed Dec 10, 2024
1 parent 60ae1af commit 5ee2d52
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,13 @@ jobs:
with:
version: "latest-everything"

- name: Set git defaultBranch to master
- name: Set Git default branch from nextflow.config and set git default branch to that or "master"
run: |
git config --global init.defaultBranch master
defaultBranch=$(grep -B5 -A5 "nextflowVersion" nextflow.config | grep "defaultBranch" | cut -d"=" -f2)
if [ -z "$defaultBranch" ]; then
defaultBranch="master"
fi
git config --global init.defaultBranch $defaultBranch
- name: Run synchronisation
if: github.repository == 'nf-core/tools'
Expand Down

0 comments on commit 5ee2d52

Please sign in to comment.