From b3b9553a3760d6d72fc33d6c73e7bbe89dbbe9ab Mon Sep 17 00:00:00 2001 From: Ajit Padhi Date: Thu, 5 Dec 2024 13:08:27 +0530 Subject: [PATCH] updated workflow --- .github/workflows/build-docker-images.yml | 10 ++++++++++ .github/workflows/build-docker.yml | 5 ----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-docker-images.yml b/.github/workflows/build-docker-images.yml index 3b57b5c1d..e3ee0b77f 100644 --- a/.github/workflows/build-docker-images.yml +++ b/.github/workflows/build-docker-images.yml @@ -21,6 +21,16 @@ on: merge_group: jobs: + test-job: + name: Test Step + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + ref: ${{ github.event.workflow_run.head_branch }} + - run: git branch + - run: env + docker-build: if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }} strategy: diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index ac91e5e59..46c0d959b 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -28,11 +28,6 @@ jobs: docker-build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - with: - ref: ${{ github.event.workflow_run.head_branch }} - - run: git branch - - run: env - name: Docker Login if: ${{ inputs.push == true && github.ref_name == 'main' }}