File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 8080
8181 # #### Create release on GitHub
8282 - name : Create or update GitHub release
83- run : scriv github-release --repo=overhangio /tutor
83+ run : scriv github-release --repo=edly-io /tutor
8484 env :
8585 GITHUB_TOKEN : ${{ github.token }}
8686 # scriv command will fail when not on a tag, such as running with act or a
Original file line number Diff line number Diff line change @@ -156,6 +156,16 @@ def _load_tasks(self) -> None:
156156 Load hooks and check types.
157157 """
158158 tasks = get_callable_attr (self .obj , "hooks" , default = {})
159+ print (f"self.obj: { self .obj } " )
160+ print (f"tasks: { tasks } " )
161+ # Check if tasks is a module and try to access its attributes
162+ import sys
163+ if isinstance (tasks , type (sys )):
164+ # Assuming hooks are defined in a variable named 'hooks' in the module
165+ print ("Attributes of the tasks module:" )
166+ print (dir (tasks )) # List of attribute names
167+ print (vars (tasks )) # Dictionary of attribute names and values
168+ tasks = getattr (tasks , 'hooks' , {})
159169 if not isinstance (tasks , dict ):
160170 raise exceptions .TutorError (
161171 f"Invalid hooks in plugin { self .name } . Expected dict, got { tasks .__class__ } ."
You can’t perform that action at this time.
0 commit comments