From ab017fe9888b36c8a4fa56b2b548c8b188d7e949 Mon Sep 17 00:00:00 2001 From: kcs-bandihareesh <106671992+kcs-bandihareesh@users.noreply.github.com> Date: Fri, 11 Oct 2024 15:29:05 +0530 Subject: [PATCH] Deploy for push to master and removed cron. --- .github/workflows/vertx-parent.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/vertx-parent.yaml b/.github/workflows/vertx-parent.yaml index bc88a66..d5c24fe 100644 --- a/.github/workflows/vertx-parent.yaml +++ b/.github/workflows/vertx-parent.yaml @@ -4,8 +4,6 @@ on: push: pull_request: workflow_dispatch: - schedule: - - cron: '0 8 * * *' # Cron job to run daily at 8AM UTC (at midnight PDT) jobs: test: @@ -74,6 +72,7 @@ jobs: deploy_snapshots: name: Deploy Snapshots runs-on: ubuntu-20.04 + if: github.ref == 'refs/heads/master' && github.event_name == 'push' permissions: contents: 'read' id-token: 'write' @@ -122,4 +121,3 @@ jobs: run: | echo "Deploying snapshots" mvn -s $HOME/.m2/settings.xml -Dmaven.wagon.http.retryHandler.count=3 --batch-mode -e -DskipTests=true deploy - if: github.ref == 'refs/heads/master'