From a5e1d0595e27ab73f45b37ad2ca316e71af87e90 Mon Sep 17 00:00:00 2001 From: Eric Allam Date: Wed, 28 Jun 2023 12:13:44 +0100 Subject: [PATCH] Trigger a test deploy if a push to main happens --- .github/workflows/publish.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index af58b0ea0..e5f576595 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -144,3 +144,10 @@ jobs: REGISTRY: ${{ steps.ecr-login.outputs.registry }} REPOSITORY: trigger.dev IMAGE_TAG: ${{ steps.get_version.outputs.version }}-${{ steps.get_commit.outputs.sha_short }} + + - name: 🚀 Trigger Test Deploy + if: github.ref == 'refs/heads/main' && github.event_name == 'push' && github.repository == 'triggerdotdev/trigger.dev' + env: + DEPLOY_TEST_HOOK: ${{ secrets.DEPLOY_TEST_HOOK }} + run: | + curl -X POST $DEPLOY_TEST_HOOK