File tree 3 files changed +11
-2
lines changed
3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 23
23
description : " Pipeline to sync"
24
24
type : string
25
25
default : " all"
26
+ debug :
27
+ description : " Enable debug/verbose mode (true or false)"
28
+ type : boolean
29
+ default : false
26
30
27
31
# Cancel if a newer run is started
28
32
concurrency :
@@ -88,13 +92,15 @@ jobs:
88
92
version : " latest-everything"
89
93
90
94
- name : Set Git default branch from nextflow.config and set git default branch to that or "master"
95
+
91
96
run : |
92
97
cd nf-core/${{ matrix.pipeline }}
93
98
defaultBranch=$(grep -B5 -A5 "nextflowVersion" nextflow.config | grep "defaultBranch" | cut -d"=" -f2)
94
99
if [ -z "$defaultBranch" ]; then
95
100
defaultBranch="master"
96
101
fi
97
102
echo "Default branch: $defaultBranch"
103
+ echo "defaultBranch=$defaultBranch" >> GITHUB_OUTPUT
98
104
git config --global init.defaultBranch $defaultBranch
99
105
100
106
- name : Run synchronisation
@@ -104,7 +110,9 @@ jobs:
104
110
run : |
105
111
git config --global user.email "[email protected] "
106
112
git config --global user.name "nf-core-bot"
107
- nf-core --log-file sync_log_${{ matrix.pipeline }}.txt pipelines sync -d nf-core/${{ matrix.pipeline }} \
113
+ nf-core --log-file sync_log_${{ matrix.pipeline }}.txt \
114
+ ${{ github.event.inputs.debug == 'true' && '--verbose' || '' }} \
115
+ pipelines sync -d nf-core/${{ matrix.pipeline }} \
108
116
--from-branch dev \
109
117
--pull-request \
110
118
--username nf-core-bot \
Original file line number Diff line number Diff line change 67
67
- rocrate: Update crate with version bump and handle new contributor field ([ #3334 ] ( https://github.com/nf-core/tools/pull/3334 ) )
68
68
- set default_branch to master for now ([ #3335 ] ( https://github.com/nf-core/tools/issues/3335 ) )
69
69
- Set git defaultBranch to master in sync action ([ #3337 ] ( https://github.com/nf-core/tools/pull/3337 ) )
70
+ - Add verbose mode to sync action ([ #3339 ] ( https://github.com/nf-core/tools/pull/3339 ) )
70
71
71
72
### Version updates
72
73
Original file line number Diff line number Diff line change @@ -298,7 +298,6 @@ def render_template(self) -> None:
298
298
template_dir = Path (nf_core .__file__ ).parent / "pipeline-template"
299
299
object_attrs = self .jinja_params
300
300
object_attrs ["nf_core_version" ] = nf_core .__version__
301
-
302
301
# Can't use glob.glob() as need recursive hidden dotfiles - https://stackoverflow.com/a/58126417/713980
303
302
template_files = list (Path (template_dir ).glob ("**/*" ))
304
303
template_files += list (Path (template_dir ).glob ("*" ))
@@ -433,6 +432,7 @@ def get_default_branch(self) -> None:
433
432
self .default_branch = (
434
433
str (git .config .GitConfigParser ().get_value ("init" , "defaultBranch" )) or "master"
435
434
) # default to master
435
+ log .debug (f"Default branch name: { self .default_branch } " )
436
436
except configparser .Error :
437
437
log .debug ("Could not read init.defaultBranch" )
438
438
if self .default_branch in ["dev" , "TEMPLATE" ]:
You can’t perform that action at this time.
0 commit comments