From a463e98d30f20604b4673515dfa02482c9bba5d4 Mon Sep 17 00:00:00 2001 From: kazuhiko kikuchi Date: Thu, 18 Aug 2022 09:09:32 +0900 Subject: [PATCH] fix typo --- .github/workflows/scripts/github-branch-protection.bash | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/scripts/github-branch-protection.bash b/.github/workflows/scripts/github-branch-protection.bash index f0ee9b16..c368b815 100644 --- a/.github/workflows/scripts/github-branch-protection.bash +++ b/.github/workflows/scripts/github-branch-protection.bash @@ -33,14 +33,14 @@ function apply_branch_protection_setting() { gh api --method PUT -H "Accept: application/vnd.github+json" --input - repos//${REPO}/branches/${BRANCH}/protection } -function enfore_admins_off() { +function enforce_admins_off() { get_current_branch_protection_setting | jq '.enforce_admins = false' | apply_branch_protection_setting } -export -f enfore_admins_off +export -f enforce_admins_off -function enfore_admins_on() { +function enforce_admins_on() { get_current_branch_protection_setting | jq '.enforce_admins = true' | apply_branch_protection_setting } -export -f enfore_admins_on +export -f enforce_admins_on