Skip to content

Commit

Permalink
fix: set ready-for-preview instead of preview label
Browse files Browse the repository at this point in the history
  • Loading branch information
sw-wayner committed Mar 4, 2024
1 parent 0f410ae commit f152a4f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/deploy-pr-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ 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
steps:
- 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:
Expand Down Expand Up @@ -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/[email protected]
Expand Down

0 comments on commit f152a4f

Please sign in to comment.