From ac5ebc9a003e7d3e75421f92467b6a8a60f4d622 Mon Sep 17 00:00:00 2001 From: Brad Cornes Date: Tue, 12 Nov 2024 11:37:42 +0000 Subject: [PATCH] Update redeploy workflow (#1681) --- .github/workflows/redeploy.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/redeploy.yml b/.github/workflows/redeploy.yml index 839b7ead62..6e25ca393f 100644 --- a/.github/workflows/redeploy.yml +++ b/.github/workflows/redeploy.yml @@ -12,10 +12,9 @@ on: jobs: redeploy: runs-on: ubuntu-latest + env: + DEPLOY_HOOK: ${{ github.ref == 'refs/heads/main' && secrets.WEBSITE_DEPLOY_HOOK || secrets.WEBSITE_DEPLOY_HOOK_CORE_1 }} steps: - name: Trigger redeploy run: | - curl -X POST ${{ secrets.WEBSITE_DEPLOY_HOOK }} - - name: Trigger search reindex - run: | - curl -X POST ${{ secrets.SEARCH_INDEX_DEPLOY_HOOK }} + curl -X POST ${{ env.DEPLOY_HOOK }}