Skip to content

Commit

Permalink
Add: Add GitHub Actions Environment property is_debug
Browse files Browse the repository at this point in the history
The property will return true if debugging is enabled in the workflow
run.
  • Loading branch information
bjoernricks committed Sep 26, 2022
1 parent 98a5fc7 commit 770f3f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pontos/github/actions/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,7 @@ def run_id(self) -> Optional[str]:
@property
def action_id(self) -> Optional[str]:
return os.environ.get("GITHUB_ACTION")

@property
def is_debug(self) -> bool:
return os.environ.get("RUNNER_DEBUG") == "1"

0 comments on commit 770f3f5

Please sign in to comment.