From 8f66a6c88a5d34fd9c2f23e390aa1a9a126ebd2d Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Sun, 29 Oct 2023 20:54:42 +0700 Subject: [PATCH] ci(workflow): restrict the deploy job only if the branch is `main` (#140) --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 032d724..87c96d8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -60,7 +60,7 @@ jobs: deploy: name: Deploy - if: github.event_name != 'pull_request' + if: github.event_name != 'pull_request' && github.ref_name == 'main' needs: test runs-on: ubuntu-latest permissions: