From 43a1746bd89d4f3c9cf830166592fd87f83d0a6c Mon Sep 17 00:00:00 2001 From: Peter Yu <49627468+Peterodox@users.noreply.github.com> Date: Tue, 9 Jun 2026 21:14:43 +0800 Subject: [PATCH 1/2] Update push.yml --- .github/workflows/push.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 466169c..9f2d1c4 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -1,10 +1,18 @@ --- name: Push and Pull Request -on: [push, pull_request] +on: + push: + branches: + - '**' + pull_request: + branches: + - '**' jobs: build: runs-on: ubuntu-latest + # Skip duplicate runs on pull_request when the push event would also trigger + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository steps: - uses: actions/setup-python@v6 with: From 91315df303236ced12e81897858abee30f05df96 Mon Sep 17 00:00:00 2001 From: Peter Yu <49627468+Peterodox@users.noreply.github.com> Date: Tue, 9 Jun 2026 21:18:49 +0800 Subject: [PATCH 2/2] Test --- .github/workflows/push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 9f2d1c4..666f6de 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -11,7 +11,7 @@ on: jobs: build: runs-on: ubuntu-latest - # Skip duplicate runs on pull_request when the push event would also trigger + # Skip duplicate runs on pull_request when the push event would also trigger. if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository steps: - uses: actions/setup-python@v6