-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3339 from mashehu/add-verbose-mode-to-sync
Add verbose mode to sync action
- Loading branch information
Showing
3 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,10 @@ on: | |
description: "Pipeline to sync" | ||
type: string | ||
default: "all" | ||
debug: | ||
description: "Enable debug/verbose mode (true or false)" | ||
type: boolean | ||
default: false | ||
|
||
# Cancel if a newer run is started | ||
concurrency: | ||
|
@@ -88,13 +92,15 @@ jobs: | |
version: "latest-everything" | ||
|
||
- name: Set Git default branch from nextflow.config and set git default branch to that or "master" | ||
|
||
run: | | ||
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" | ||
echo "defaultBranch=$defaultBranch" >> GITHUB_OUTPUT | ||
git config --global init.defaultBranch $defaultBranch | ||
- name: Run synchronisation | ||
|
@@ -104,7 +110,9 @@ jobs: | |
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "nf-core-bot" | ||
nf-core --log-file sync_log_${{ matrix.pipeline }}.txt pipelines sync -d nf-core/${{ matrix.pipeline }} \ | ||
nf-core --log-file sync_log_${{ matrix.pipeline }}.txt \ | ||
${{ github.event.inputs.debug == 'true' && '--verbose' || '' }} \ | ||
pipelines sync -d nf-core/${{ matrix.pipeline }} \ | ||
--from-branch dev \ | ||
--pull-request \ | ||
--username nf-core-bot \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters