Skip to content

Commit

Permalink
Disable workflows in the temp test repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ciberkleid committed Sep 10, 2024
1 parent ae14e9a commit 728884d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions etc/test/includes/copy-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 728884d

Please sign in to comment.