From bc6e958d7ea0b3c3e56ac854b476198d72a792f1 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 4 Jul 2023 14:49:16 -0700 Subject: [PATCH] aider: Remove push and pull_request triggers, add workflow_dispatch trigger to make the GitHub action only run when manually initiated. # Context: USER: can you stop this action from running on pushes/merges and make it so that it only runs when manually initiated? ASSISTANT: Sure, to make the GitHub action only run when manually initiated, we need to modify the `.github/workflows/windows-tests.yml` file. We will remove the `push` and `pull_request` triggers and add a `workflow_dispatch` trigger. Here is the change: ```yaml .github/workflows/windows-tests.yml <<<<<<< ORIGINAL name: Windows Tests on: push: branches: - main pull_request: branches: - main ======= name: Windows Tests on: workflow_dispatch: >>>>>>> UPDATED ``` This change will make the workflow only run when manually triggered from the GitHub Actions UI. --- .github/workflows/windows-tests.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/windows-tests.yml b/.github/workflows/windows-tests.yml index fc9e3eb0b..2a1c9c856 100644 --- a/.github/workflows/windows-tests.yml +++ b/.github/workflows/windows-tests.yml @@ -1,12 +1,7 @@ name: Windows Tests on: - push: - branches: - - main - pull_request: - branches: - - main + workflow_dispatch: jobs: build: