From 55807a1f9a34ec03b7eabaa9d19f9a8520fb9ef0 Mon Sep 17 00:00:00 2001 From: sw-wayner Date: Mon, 4 Mar 2024 11:17:30 -0400 Subject: [PATCH] fix: set ready-for-preview instead of preview tag now the preview tag must be set manually to reduce the amount of environments --- .github/workflows/deploy-pr-preview.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-pr-preview.yml b/.github/workflows/deploy-pr-preview.yml index 26738c414..1f395d4b1 100644 --- a/.github/workflows/deploy-pr-preview.yml +++ b/.github/workflows/deploy-pr-preview.yml @@ -30,7 +30,7 @@ jobs: file: ./infrastructure/preview.Dockerfile push: true tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}-dev:preview-${{ github.event.number }}-${{ github.event.pull_request.head.sha }} - add_preview_label: + add_ready_for_preview_label: if: github.event.pull_request.draft == false runs-on: ubuntu-latest needs: build @@ -38,9 +38,9 @@ jobs: - uses: actions-ecosystem/action-add-labels@v1 with: labels: | - preview + ready-for-preview dispatch_update_deployment: - needs: add_preview_label + needs: add_ready_for_preview_label runs-on: ubuntu-latest if: ${{ contains(github.event.pull_request.labels.*.name, 'deployed') }} steps: @@ -75,8 +75,9 @@ jobs: } } dispatch_check_deployment: - needs: add_preview_label + needs: add_ready_for_preview_label runs-on: ubuntu-latest + if: ${{ contains(github.event.pull_request.labels.*.name, 'preview') }} steps: - name: Dispatch Check Preview Repository Command uses: myrotvorets/trigger-repository-dispatch-action@1.0.0