From 7aee6f35071ba299bc8477319995ecff85c36c9e Mon Sep 17 00:00:00 2001 From: Roman Bredehoft Date: Mon, 24 Jun 2024 10:15:49 +0200 Subject: [PATCH] chore: disable weekly tests on the internal repository --- .github/workflows/continuous-integration.yaml | 2 +- .github/workflows/release.yaml | 2 +- .github/workflows/weekly_tests.yaml | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml index 25fc28290..10a56ceef 100644 --- a/.github/workflows/continuous-integration.yaml +++ b/.github/workflows/continuous-integration.yaml @@ -100,7 +100,7 @@ jobs: matrix-preparation: name: Prepare versions and OS # We skip the CI in cases of pushing to internal main (because all pushes to main internal are now from the bot) - if: ${{ !( github.repository == 'zama-ai/concrete-ml-internal' && github.event_name == 'push' && github.ref == 'refs/heads/main' ) }} + if: ${{ !( github.repository != 'zama-ai/concrete-ml' && github.event_name == 'push' && github.ref == 'refs/heads/main' ) }} runs-on: ubuntu-20.04 timeout-minutes: 5 outputs: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7a69cdc45..9a953e531 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -638,7 +638,7 @@ jobs: SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }} SLACK_ICON: https://pbs.twimg.com/profile_images/1274014582265298945/OjBKP9kn_400x400.png SLACK_COLOR: ${{ env.JOB_STATUS || 'failure' }} - SLACK_MESSAGE: "Creating release for ${{ env.GIT_TAG }} finished with status\ + SLACK_MESSAGE: "Creating release for ${{ env.GIT_TAG }} finished with status: \ ${{ env.JOB_STATUS || 'failure' }} (${{ env.ACTION_RUN_URL }})\n\ - start-runner-linux: ${{ needs.start-runner-linux.result || 'Did not run.'}}\n\n\ - release-checks: ${{ needs.release-checks.result || 'Did not run.' }}\n\n\ diff --git a/.github/workflows/weekly_tests.yaml b/.github/workflows/weekly_tests.yaml index 332e6f5f3..815198fe5 100644 --- a/.github/workflows/weekly_tests.yaml +++ b/.github/workflows/weekly_tests.yaml @@ -15,8 +15,10 @@ concurrency: jobs: # The caller workflow's job (here 'weekly-tests') does not need to run on the current runner as # the reusable workflow (here 'continuous-integration.yaml') uses its own runner + # Only allow weekly tests on the public repository weekly-tests: name: Run weekly tests + if: ${{ github.repository == 'zama-ai/concrete-ml' }} uses: ./.github/workflows/continuous-integration.yaml secrets: inherit with: