mirror of
https://github.com/fallout2-ce/fallout2-ce.github.io.git
synced 2026-07-27 16:47:19 -07:00
Update preview status AFTER it is deployed
This commit is contained in:
@@ -77,18 +77,6 @@ jobs:
|
||||
clean: false
|
||||
single-commit: true
|
||||
|
||||
- name: Update deployment status
|
||||
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
|
||||
uses: bobheadxi/deployments@v1
|
||||
with:
|
||||
step: finish
|
||||
status: success
|
||||
debug: true
|
||||
env: ${{ steps.deployment.outputs.env }}
|
||||
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
env_url: https://fallout2-ce.github.io/PR-${{ github.event.pull_request.number }}/
|
||||
|
||||
- name: Check that site is deployed
|
||||
run: |
|
||||
URL="$SITE_ORIGIN""$SITE_BASE""site_hash.txt"
|
||||
@@ -103,8 +91,21 @@ jobs:
|
||||
sleep 5
|
||||
done
|
||||
exit 1
|
||||
|
||||
env:
|
||||
SITE_ORIGIN: https://fallout2-ce.github.io
|
||||
SITE_BASE: ${{ steps.set-path.outputs.SITE_BASE }}
|
||||
|
||||
- name: Update deployment status
|
||||
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
|
||||
uses: bobheadxi/deployments@v1
|
||||
with:
|
||||
step: finish
|
||||
status: success
|
||||
debug: true
|
||||
env: ${{ steps.deployment.outputs.env }}
|
||||
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
env_url: https://fallout2-ce.github.io/PR-${{ github.event.pull_request.number }}/
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user