diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..24b2345 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "chat.tools.terminal.autoApprove": { + "od": true, + "hexdump": true + } +} \ No newline at end of file diff --git a/disable-all-workflows.sh b/disable-all-workflows.sh index 670b42b..152697b 100755 --- a/disable-all-workflows.sh +++ b/disable-all-workflows.sh @@ -5,6 +5,9 @@ set -euo pipefail +# Disable pager for gh CLI to prevent interactive prompts +export GH_PAGER="" + if [[ $# -ne 2 ]]; then echo "Usage: $0 " exit 1 @@ -32,7 +35,7 @@ if [[ -z "$active_ids" ]]; then fi for id in $active_ids; do - echo -n "Disabling workflow ID $id… " + echo -n "Disabling workflow ID ${id}… " gh api \ --method PUT \ /repos/"$OWNER"/"$REPO"/actions/workflows/"$id"/disable \