From 05d93d94f2a389f0251b007ed177848f70330be7 Mon Sep 17 00:00:00 2001 From: Sujan Poudel Date: Fri, 22 Sep 2023 14:12:03 +0545 Subject: [PATCH] cd fix (#24) --- .github/workflows/deployment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 42f27d3..472e087 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Exit if not on main branch - if: endsWith(github.ref, 'main') == false + if: github.ref != 'refs/heads/main' run: exit -1 - uses: actions/checkout@v3