From 72bf2003a763479c06ad59056d5d79b9a7bfa174 Mon Sep 17 00:00:00 2001 From: Yiheng Tao Date: Sat, 28 Jun 2025 21:01:39 -0700 Subject: [PATCH] ci: prevent workflows from running when triggered by github-actions bot Add condition to skip workflow execution when github.actor is github-actions[bot] to prevent infinite loops and unnecessary runs from automated processes. - Add condition to extension-ci.yml test job - Add condition to tests.yml test job (GitHub Copilot) --- .github/workflows/extension-ci.yml | 1 + .github/workflows/tests.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/extension-ci.yml b/.github/workflows/extension-ci.yml index 63b76076..d6081e9e 100644 --- a/.github/workflows/extension-ci.yml +++ b/.github/workflows/extension-ci.yml @@ -8,6 +8,7 @@ on: jobs: test: + if: ${{ github.actor != 'github-actions[bot]' }} runs-on: ubuntu-latest strategy: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 086bfa89..cf3c6dd4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,6 +9,7 @@ on: jobs: test: + if: ${{ github.actor != 'github-actions[bot]' }} timeout-minutes: 30 strategy: fail-fast: false