diff --git a/run.py b/run.py index 830e591..d8c499c 100755 --- a/run.py +++ b/run.py @@ -22,7 +22,7 @@ def toggle_enforce_admin(options): protection = get_protection(access_token, branch_name, owner, repo_name) print(f"Enforce admins branch protection enabled? {protection.enforce_admins.enabled}") # save the current status for use later on if desired - print(f"::set-output name=initial_status::{protection.enforce_admins.enabled}") + print(f"\"name=initial_status::{protection.enforce_admins.enabled}\" >> $GITHUB_OUTPUT") print(f"Setting enforce admins branch protection to {enforce_admins if enforce_admins is not None else not protection.enforce_admins.enabled}") for i in range(retries): try: