From f152a4f356a5dc77a9e923dce4e899d1a47e34b3 Mon Sep 17 00:00:00 2001 From: sw-wayner Date: Mon, 4 Mar 2024 11:35:27 -0400 Subject: [PATCH] fix: set ready-for-preview instead of preview label --- .github/workflows/deploy-pr-preview.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-pr-preview.yaml b/.github/workflows/deploy-pr-preview.yaml index c457c979..a0c6eacf 100644 --- a/.github/workflows/deploy-pr-preview.yaml +++ b/.github/workflows/deploy-pr-preview.yaml @@ -22,7 +22,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 @@ -30,9 +30,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: @@ -67,8 +67,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