Skip to content

Commit

Permalink
Merge pull request #21 from urcomputeringpal/jnewland-patch-1
Browse files Browse the repository at this point in the history
Don't mark out-of-date deployments as destroyed
  • Loading branch information
jnewland authored Apr 14, 2023
2 parents 452b0ba + 8b3ba8c commit 3354ed4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: urcomputeringpal/pr-preview-deploy-ux-action@main
- uses: urcomputeringpal/pr-preview-deploy-ux-action@jnewland-patch-1
name: Start preview deploy
id: start
with:
Expand All @@ -18,7 +18,7 @@ jobs:

- run: echo perform deploy

- uses: urcomputeringpal/pr-preview-deploy-ux-action@main
- uses: urcomputeringpal/pr-preview-deploy-ux-action@jnewland-patch-1
name: Finish preview deploy
if: always()
with:
Expand Down
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,7 @@ An example of a GitHub Actions workflow that creates and updates transient Deplo

### Active PR

#### Initial deployment

<img width="855" alt="image" src="https://user-images.githubusercontent.com/47/232165989-94d3b897-c03d-4057-a352-e667e11a1b93.png">

#### Subsequent synchronize events

<img width="866" alt="image" src="https://user-images.githubusercontent.com/47/232166116-9e861121-c3b6-437e-92fc-134e8b649bc4.png">
<img width="858" alt="image" src="https://user-images.githubusercontent.com/47/232167347-5a30a8a7-5e15-47e7-9862-8f1ab5bdb01f.png">

### Merged PR

Expand Down
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ runs:
ref: ${{ inputs.head_ref }}
logs: ${{ steps.job-url.outputs.result }}
env: preview-${{ github.event.pull_request.number }}
override: false

- name: Finish deployment
if: ${{ inputs.step == 'finish' }}
Expand All @@ -83,6 +84,8 @@ runs:
deployment_id: ${{ inputs.deployment_id }}
status: ${{ inputs.status }}
env: ${{ inputs.env }}
override: false
auto_inactive: true

env_url: https://pr-preview-${{ github.event.pull_request.number }}.example.com

Expand Down

0 comments on commit 3354ed4

Please sign in to comment.