From fd7ecfc35e40a3303dc283207045fb4edae4451e Mon Sep 17 00:00:00 2001 From: Kier Borromeo Date: Thu, 28 Nov 2024 00:37:10 +0800 Subject: [PATCH] fix: workflow to only read commits from main --- .github/workflows/codegen.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codegen.yml b/.github/workflows/codegen.yml index 6f8d19d..df2b206 100644 --- a/.github/workflows/codegen.yml +++ b/.github/workflows/codegen.yml @@ -1,9 +1,8 @@ -name: Echo Registry Codegen +name: Echos Registry Codegen on: - pull_request: - paths: - - "src/agents/**" + push: + branches: ["main"] jobs: codegen: @@ -11,6 +10,7 @@ jobs: permissions: contents: write # Allows the action to create a pull request + pull-requests: write # For creating/updating pull requests steps: - uses: actions/checkout@v4