git: 57b9a104a26d - main - Cirrus CI: Only trigger amd64-gcc12 on pull requests

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Fri, 06 Oct 2023 14:08:28 UTC
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=57b9a104a26d0761c4cba5726f0ab78b50a57ded

commit 57b9a104a26d0761c4cba5726f0ab78b50a57ded
Author:     Jose Luis Duran <jlduran@gmail.com>
AuthorDate: 2023-10-06 12:13:26 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2023-10-06 14:07:59 +0000

    Cirrus CI: Only trigger amd64-gcc12 on pull requests
    
    Since Cirrus Labs is limiting their free usage tier [1], limit gcc CI
    runs to pull requests only.
    
    [1]: https://cirrus-ci.org/blog/2023/07/17/limiting-free-usage-of-cirrus-ci/
---
 .cirrus.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.cirrus.yml b/.cirrus.yml
index 345e7ab148bb..99a6e0106897 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -63,7 +63,7 @@ task:
       TOOLCHAIN_PKG: ${TOOLCHAIN}
       EXTRA_MAKE_FLAGS: -s
   - name: amd64-gcc12 World and kernel build and boot smoke test (FreeBSD repo)
-    only_if: $CIRRUS_REPO_FULL_NAME == 'freebsd/freebsd-src'
+    only_if: $CIRRUS_REPO_FULL_NAME == 'freebsd/freebsd-src' && $CIRRUS_BRANCH =~ 'pull/.*'
     env:
       TARGET: amd64
       TARGET_ARCH: amd64