Issues with Debug Logging in Github Action Workflow

I am using an if condition in my github workflow step . The step is getting skipped because of the condition. I have enabled debug logging using the repository variable. I also tried running the job with debug logging enabled. However I couldn’t see any log just the message "This job was skipped ". Can anyone tell me if I am doing anything wrong here