From 2fcf9d3a5b882715b1bd630fb81e43fd748e2bc3 Mon Sep 17 00:00:00 2001 From: Emily Mabrey Date: Sun, 22 Aug 2021 09:04:13 -0400 Subject: [PATCH] Fix MacOS CI Only attempt signing using Apple certificate on create tag events. Signed-off-by: Emily Mabrey Reference-to: https://github.com/tenacityteam/tenacity/pull/525 --- .github/workflows/cmake_build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cmake_build.yml b/.github/workflows/cmake_build.yml index 49fa7f39f..53b444249 100644 --- a/.github/workflows/cmake_build.yml +++ b/.github/workflows/cmake_build.yml @@ -114,7 +114,7 @@ jobs: - name: Install Apple codesigning certificates uses: apple-actions/import-codesign-certs@v1 - if: startswith( matrix.config.os, 'macos' ) && github.event_name == 'push' && github.repository_owner == 'tenacityteam' + if: startswith( matrix.config.os, 'macos' ) && github.repository_owner == 'tenacityteam' && github.event_name == 'create' && github.event.ref_type == 'tag' with: p12-file-base64: ${{ secrets.APPLE_CERTIFICATE }} p12-password: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}