Trigger a test deploy if a push to main happens

This commit is contained in:
Eric Allam
2023-06-28 12:13:44 +01:00
parent 7e8c6e92a2
commit a5e1d0595e
+7
View File
@@ -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