Skip to content

Commit

Permalink
change working dir when setting defaultBranch
Browse files Browse the repository at this point in the history
  • Loading branch information
mashehu committed Dec 10, 2024
1 parent 7a69b8c commit 15b044d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,12 @@ jobs:

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

0 comments on commit 15b044d

Please sign in to comment.