From 1fb445aae84aa6a44547849464ca39086dd1e2c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=BF=B5=E5=90=9B=20Nianjun=20Sun?= Date: Thu, 12 Oct 2023 10:20:21 +0800 Subject: [PATCH] Remove useless script (#28725) * Automated Change * Automated Change * Automated Change * Refactor : refactor the useless script * Refactor : remove useless file --------- Co-authored-by: taojintianxia --- .github/workflows/nightly-build.yml | 2 +- .github/workflows/required-reusable.yml | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index 31c343584dc20..3a414ead7610b 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -71,7 +71,7 @@ jobs: remote_key: ${{ secrets.NIGHTLIES_RSYNC_KEY }} build-proxy-image: - if: ${{ needs.global-environment.outputs.GLOBAL_IS_NIGHTLY_JOB_EXECUTABLE == 'true' }} + if: github.repository == 'apache/shardingsphere' name: Build Proxy Image needs: global-environment runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }} diff --git a/.github/workflows/required-reusable.yml b/.github/workflows/required-reusable.yml index 159952a1b9da7..03534c0ac733a 100644 --- a/.github/workflows/required-reusable.yml +++ b/.github/workflows/required-reusable.yml @@ -56,13 +56,6 @@ jobs: if [ ${{ toJSON(github.repository) }} = ${{ steps.import-variables.outputs.GLOBAL_REPOSITORY }} ]; then echo "GLOBAL_IS_NIGHTLY_JOB_EXECUTABLE=true" >> $GITHUB_OUTPUT echo "GLOBAL_JOB_ENABLED=false" >> $GITHUB_OUTPUT - echo '${{ env.JSON_LABELS }}' | while read line - do - if [ ${line}="type: ${{ steps.import-variables.outputs.RUNNABLE_CI_LABEL }}" ] || [ -z "${{ steps.import-variables.outputs.RUNNABLE_CI_LABEL }}" ]; then - echo "GLOBAL_JOB_ENABLED=true" >> $GITHUB_OUTPUT - break - fi - done fi outputs: GLOBAL_RUNS_ON: ${{ steps.import-variables.outputs.GLOBAL_RUNS_ON }}