From 728884d965f8c4b2ca8d0041cf319b20c8d6a098 Mon Sep 17 00:00:00 2001 From: Cora Iberkleid Date: Tue, 10 Sep 2024 11:50:48 -0400 Subject: [PATCH] Disable workflows in the temp test repo --- etc/test/includes/copy-repo.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etc/test/includes/copy-repo.sh b/etc/test/includes/copy-repo.sh index 1c6ab32c..3a1dca42 100755 --- a/etc/test/includes/copy-repo.sh +++ b/etc/test/includes/copy-repo.sh @@ -81,6 +81,12 @@ echo -e "\nSwitching back to default branch [$original_branch]" git checkout "$original_branch" gh repo edit --default-branch "$original_branch" +# Disable workflows +gh workflow list --json id | jq -r '.[] | .id' | while read -r workflow_id; do + echo "Disabling workflow with ID: $workflow_id" + gh workflow disable "$workflow_id" +done + # Clean up cd "$start_dir"