From d307ff2b3675b56f35d46f3a86c1bbeacd169042 Mon Sep 17 00:00:00 2001 From: Simon Powell Date: Mon, 24 Jun 2024 10:24:54 +0100 Subject: [PATCH 1/2] [DEBUGINFRA-1130] Only run static analysis and code signing in Arm-software org --- .github/workflows/post_weekly_release.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/post_weekly_release.yaml b/.github/workflows/post_weekly_release.yaml index 77de2aca..4012b5f5 100644 --- a/.github/workflows/post_weekly_release.yaml +++ b/.github/workflows/post_weekly_release.yaml @@ -14,7 +14,9 @@ on: jobs: coverity: - if: ${{ !startsWith(github.event.ref, 'refs/tags/') }} + if: | + ${{ !startsWith(github.event.ref, 'refs/tags/') }} && + github.repository_owner == 'Arm-software' name: Run Coverity Static Analysis runs-on: [self-hosted-ubuntu-latest-x64] steps: @@ -209,6 +211,7 @@ jobs: shell: cmd sign-binaries: + if: github.repository_owner == 'Arm-software' name: Sign Windows and Mac runs-on: [self-hosted-ubuntu-latest-x64] needs: [build-macos, build-windows-msvc-ClangCL] @@ -276,7 +279,9 @@ jobs: astcenc-macos-universal prepare-release: - if: ${{ startsWith(github.event.ref, 'refs/tags/') }} + if: | + ${{ startsWith(github.event.ref, 'refs/tags/') }} && + github.repository_owner == "Arm-software" name: Prepare release runs-on: ubuntu-22.04 needs: [sign-binaries, build-ubuntu] From 3d1402e7f423eb23c9f501e9f4704d92580e1b5e Mon Sep 17 00:00:00 2001 From: Simon Powell Date: Mon, 24 Jun 2024 11:56:44 +0100 Subject: [PATCH 2/2] Correct logic --- .github/workflows/post_weekly_release.yaml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/post_weekly_release.yaml b/.github/workflows/post_weekly_release.yaml index 4012b5f5..bb6199c8 100644 --- a/.github/workflows/post_weekly_release.yaml +++ b/.github/workflows/post_weekly_release.yaml @@ -14,9 +14,7 @@ on: jobs: coverity: - if: | - ${{ !startsWith(github.event.ref, 'refs/tags/') }} && - github.repository_owner == 'Arm-software' + if: ${{ (!startsWith(github.event.ref, 'refs/tags/')) && (github.repository_owner == 'Arm-software') }} name: Run Coverity Static Analysis runs-on: [self-hosted-ubuntu-latest-x64] steps: @@ -279,9 +277,7 @@ jobs: astcenc-macos-universal prepare-release: - if: | - ${{ startsWith(github.event.ref, 'refs/tags/') }} && - github.repository_owner == "Arm-software" + if: ${{ (startsWith(github.event.ref, 'refs/tags/')) && (github.repository_owner == 'Arm-software') }} name: Prepare release runs-on: ubuntu-22.04 needs: [sign-binaries, build-ubuntu]