From fca93cf667205bce976a99de5f13eb5ac532edc7 Mon Sep 17 00:00:00 2001 From: samwinebrake <85908068+samwinebrake@users.noreply.github.com> Date: Tue, 23 Jan 2024 10:59:50 -0500 Subject: [PATCH] comment out for now --- .github/workflows/handle-private-pr.yml | 92 ++++++++++++------------- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/.github/workflows/handle-private-pr.yml b/.github/workflows/handle-private-pr.yml index 6e9c439ba..7bbf16a37 100644 --- a/.github/workflows/handle-private-pr.yml +++ b/.github/workflows/handle-private-pr.yml @@ -1,47 +1,47 @@ -name: Handle Private PR Notification - -on: - repository_dispatch: - types: [new-private-pr] - -env: - BSC_DATABASESECRET: secrets.BSC_DATABASESECRET - -permissions: write-all - -jobs: - prepare_and_trigger_tests: - runs-on: ubuntu-latest - steps: - # (Might not need this step if only directories present in private are these directories) - - name: Check Changed Directories - id: check_changes - run: | - changed_directories="${{ github.event.client_payload.changed_dirs }}" - echo "Changed directories: $changed_directories" - changes_in_models_or_benchmarks="false" - if [[ $changed_directories == *"/models"* || $changed_directories == *"/benchmarks"* ]]; then - changes_in_models_or_benchmarks="true" - fi - echo "changes_in_models_or_benchmarks=$changes_in_models_or_benchmarks" >> $GITHUB_ENV - - # Checkout public repository - - name: Checkout Public Repository Code - uses: actions/checkout@v4 - - # Checkout private repository - - name: Checkout Private Repository Code - uses: actions/checkout@v2 - with: - repository: 'brains-score/vision_private' - token: ${{ secrets.PRIVATE_REPO_ACCESS_TOKEN }} - path: 'private-repo' - - # Move files from private repo to public repo - - name: Move Files from Private to Public Repository - if: env.changes_in_models_or_benchmarks == 'true' - run: | - mv private-repo/benchmarks/* vision/benchmarks/ - mv private-repo/models/* vision/models/ - mv private-repo/datasets/* vision/datasets/ +# name: Handle Private PR Notification + +# on: +# repository_dispatch: +# types: [new-private-pr] + +# env: +# BSC_DATABASESECRET: secrets.BSC_DATABASESECRET + +# permissions: write-all + +# jobs: +# prepare_and_trigger_tests: +# runs-on: ubuntu-latest +# steps: +# # (Might not need this step if only directories present in private are these directories) +# - name: Check Changed Directories +# id: check_changes +# run: | +# changed_directories="${{ github.event.client_payload.changed_dirs }}" +# echo "Changed directories: $changed_directories" +# changes_in_models_or_benchmarks="false" +# if [[ $changed_directories == *"/models"* || $changed_directories == *"/benchmarks"* ]]; then +# changes_in_models_or_benchmarks="true" +# fi +# echo "changes_in_models_or_benchmarks=$changes_in_models_or_benchmarks" >> $GITHUB_ENV + +# # Checkout public repository +# - name: Checkout Public Repository Code +# uses: actions/checkout@v4 + +# # Checkout private repository +# - name: Checkout Private Repository Code +# uses: actions/checkout@v2 +# with: +# repository: 'brains-score/vision_private' +# token: ${{ secrets.PRIVATE_REPO_ACCESS_TOKEN }} +# path: 'private-repo' + +# # Move files from private repo to public repo +# - name: Move Files from Private to Public Repository +# if: env.changes_in_models_or_benchmarks == 'true' +# run: | +# mv private-repo/benchmarks/* vision/benchmarks/ +# mv private-repo/models/* vision/models/ +# mv private-repo/datasets/* vision/datasets/