From 017efdf9117c8ef0aef57997862b59d81bde8eed Mon Sep 17 00:00:00 2001 From: Ben Jefferies Date: Wed, 19 Jul 2023 14:00:44 +0100 Subject: [PATCH] Fix deprecated output Closes #28 --- run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: