diff --git a/.github/workflows/previews-ods-ui.yaml b/.github/workflows/previews-ods-ui.yaml index f52996c..594699b 100644 --- a/.github/workflows/previews-ods-ui.yaml +++ b/.github/workflows/previews-ods-ui.yaml @@ -19,6 +19,7 @@ jobs: permissions: contents: read pull-requests: write + statuses: write steps: - name: Checkout branch @@ -39,6 +40,13 @@ jobs: with: version: v1.33.0 + - name: Set pending status + uses: myrotvorets/set-commit-status-action@v2.0.1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + context: Preview deployed + status: pending + - name: Set up Kustomize uses: imranismail/setup-kustomize@v2 @@ -103,6 +111,15 @@ jobs: **URL:** https://${{ steps.vars.outputs.branch }}.piveau-ln-preview.zazukoians.org/ **Note:** It may take a few minutes for the DNS to propagate, the certificate to be generated and the preview to be reachable. + - name: Final status check + uses: myrotvorets/set-commit-status-action@v2.0.1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + context: Preview deployed + description: It may take a few minutes for the DNS to propagate, the certificate to be generated and the preview to be reachable. + status: success + targetUrl: https://${{ steps.vars.outputs.branch }}.piveau-ln-preview.zazukoians.org/ + - name: Delete manifests working-directory: ./opendata.swiss/ui/k8s if: github.event.action == 'closed'