Skip to content

Commit 6ea4614

Browse files
authored
Merge pull request #281 from internxt/ci-IN-31-github-actions
[IN-31] fix: set ready-for-preview instead of preview tag
2 parents 0cd8e34 + 55807a1 commit 6ea4614

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/deploy-pr-preview.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ jobs:
3030
file: ./infrastructure/preview.Dockerfile
3131
push: true
3232
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}-dev:preview-${{ github.event.number }}-${{ github.event.pull_request.head.sha }}
33-
add_preview_label:
33+
add_ready_for_preview_label:
3434
if: github.event.pull_request.draft == false
3535
runs-on: ubuntu-latest
3636
needs: build
3737
steps:
3838
- uses: actions-ecosystem/action-add-labels@v1
3939
with:
4040
labels: |
41-
preview
41+
ready-for-preview
4242
dispatch_update_deployment:
43-
needs: add_preview_label
43+
needs: add_ready_for_preview_label
4444
runs-on: ubuntu-latest
4545
if: ${{ contains(github.event.pull_request.labels.*.name, 'deployed') }}
4646
steps:
@@ -75,8 +75,9 @@ jobs:
7575
}
7676
}
7777
dispatch_check_deployment:
78-
needs: add_preview_label
78+
needs: add_ready_for_preview_label
7979
runs-on: ubuntu-latest
80+
if: ${{ contains(github.event.pull_request.labels.*.name, 'preview') }}
8081
steps:
8182
- name: Dispatch Check Preview Repository Command
8283
uses: myrotvorets/trigger-repository-dispatch-action@1.0.0

0 commit comments

Comments
 (0)