From f4e3d903e38107fe06dffe2915a6e96de7c97075 Mon Sep 17 00:00:00 2001 From: elayrocks Date: Thu, 2 May 2024 13:27:45 -0700 Subject: [PATCH] ready for review, revert the changes for testing purpose --- .github/workflows/cicd.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 7c3a2db6..c33e87be 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -2,7 +2,7 @@ name: Planetary Computer APIs CI/CD on: push: - branches: [remove-secret-from-cicd] + branches: [main] tags: ["*"] permissions: @@ -52,6 +52,7 @@ jobs: deploy: runs-on: ubuntu-latest + if: ${{ github.ref == 'refs/heads/main' }} needs: - build_and_publish steps: @@ -66,6 +67,7 @@ jobs: - name: Get image tag id: get_image_tag + if: ${{ github.base_ref }} run: case "${GITHUB_REF}" in *tags*)