diff --git a/.github/workflows/build-graphscope-images-linux.yml b/.github/workflows/build-graphscope-images-linux.yml index 26dfa90a8ccc..94485bf7d19c 100644 --- a/.github/workflows/build-graphscope-images-linux.yml +++ b/.github/workflows/build-graphscope-images-linux.yml @@ -1,26 +1,26 @@ name: Build GraphScope Images on Linux -on: [push, pull_request] -# on: -# workflow_dispatch: -# schedule: -# # The notifications for scheduled workflows are sent to the user who -# # last modified the cron syntax in the workflow file. -# # Trigger the workflow at 03:00(CST) every day. -# - cron: '00 19 * * *' -# push: -# tags: -# - "v*" -# pull_request: -# branches: -# - main -# paths: -# - 'k8s/dockerfiles/analytical.Dockerfile' -# - 'k8s/dockerfiles/coordinator.Dockerfile' -# - 'k8s/dockerfiles/interactive.Dockerfile' -# - 'k8s/dockerfiles/learning.Dockerfile' -# - 'k8s/dockerfiles/graphlearn-torch.Dockerfile' -# - '.github/workflows/build-graphscope-images-linux.yml' +# on: [push, pull_request] +on: + workflow_dispatch: + schedule: + # The notifications for scheduled workflows are sent to the user who + # last modified the cron syntax in the workflow file. + # Trigger the workflow at 03:00(CST) every day. + - cron: '00 19 * * *' + push: + tags: + - "v*" + pull_request: + branches: + - main + paths: + - 'k8s/dockerfiles/analytical.Dockerfile' + - 'k8s/dockerfiles/coordinator.Dockerfile' + - 'k8s/dockerfiles/interactive.Dockerfile' + - 'k8s/dockerfiles/learning.Dockerfile' + - 'k8s/dockerfiles/graphlearn-torch.Dockerfile' + - '.github/workflows/build-graphscope-images-linux.yml' concurrency: group: ${{ github.repository }}-${{ github.event.number || github.head_ref || github.sha }}-${{ github.workflow }} @@ -31,7 +31,7 @@ env: jobs: build-image-x86-64: - # if: (github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope') || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope') || (github.pull_request == 'pull_request') || (github.event_name == 'workflow_dispatch') + if: (github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope') || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope') || (github.pull_request == 'pull_request') || (github.event_name == 'workflow_dispatch') runs-on: ubuntu-20.04 steps: