From 8be830c35a77ab7f219d99f650595c8fcf3dbeef Mon Sep 17 00:00:00 2001 From: realaravinth Date: Fri, 29 Oct 2021 20:08:17 +0530 Subject: [PATCH] run deploy routine only on this repo --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 82d3617..d31f150 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -45,6 +45,6 @@ jobs: publish_dir: ./public - name: deploy - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'mCaptcha/website' }} run: >- curl --location --request POST "https://deploy.batsense.net/api/v1/update" --header 'Content-Type: application/json' --data-raw "{ \"secret\": \"${{ secrets.DEPLOY_TOKEN }}\", \"branch\": \"gh-pages\" }"