From 12a0066c03f3c298ac39343d61bbc64d68ac2c63 Mon Sep 17 00:00:00 2001 From: Vignesh Sweekaran <40670015+vigneshsweekaran@users.noreply.github.com> Date: Sat, 8 Jan 2022 21:26:09 +0530 Subject: [PATCH 1/2] Update and rename 6-checking-needs-for-id-condition.yaml to 06-checking-needs-for-id-condition.yml --- ...id-condition.yaml => 06-checking-needs-for-id-condition.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{6-checking-needs-for-id-condition.yaml => 06-checking-needs-for-id-condition.yml} (99%) diff --git a/.github/workflows/6-checking-needs-for-id-condition.yaml b/.github/workflows/06-checking-needs-for-id-condition.yml similarity index 99% rename from .github/workflows/6-checking-needs-for-id-condition.yaml rename to .github/workflows/06-checking-needs-for-id-condition.yml index 4cc3a5805f..0310a4383e 100644 --- a/.github/workflows/6-checking-needs-for-id-condition.yaml +++ b/.github/workflows/06-checking-needs-for-id-condition.yml @@ -81,7 +81,7 @@ jobs: docker rm -f hello-world-dev || true docker run --name hello-world-${{ needs.pre-deploy.outputs.environment-name }} -d -p 9003:8080 vigneshsweekaran/hello-world-github-actions:$TAG - Test: + Test: runs-on: ubuntu-latest if: ${{ github.ref != 'refs/heads/dev' }} steps: From 2417c80555c50904aef38f0b2962bf5c7f224e11 Mon Sep 17 00:00:00 2001 From: Vignesh Sweekaran <40670015+vigneshsweekaran@users.noreply.github.com> Date: Sat, 8 Jan 2022 21:27:44 +0530 Subject: [PATCH 2/2] Update 06-checking-needs-for-id-condition.yml --- .github/workflows/06-checking-needs-for-id-condition.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/06-checking-needs-for-id-condition.yml b/.github/workflows/06-checking-needs-for-id-condition.yml index 0310a4383e..f765427a4b 100644 --- a/.github/workflows/06-checking-needs-for-id-condition.yml +++ b/.github/workflows/06-checking-needs-for-id-condition.yml @@ -12,7 +12,7 @@ on: workflow_dispatch jobs: build: runs-on: ubuntu-latest - if: ${{ github.ref != 'refs/heads/master' }} + if: ${{ github.ref == 'refs/heads/master' }} steps: - name: Checkout uses: actions/checkout@v2 @@ -83,7 +83,7 @@ jobs: Test: runs-on: ubuntu-latest - if: ${{ github.ref != 'refs/heads/dev' }} + if: ${{ github.ref == 'refs/heads/dev' }} steps: - name: Checkout uses: actions/checkout@v2