Skip to content

Commit

Permalink
Test clean up when pr closed
Browse files Browse the repository at this point in the history
  • Loading branch information
josedev-union committed Nov 10, 2023
1 parent 95a2cde commit 8c8ea0d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/caprover.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ jobs:
with:
server: ${{ secrets.CAPTAIN_SERVER_URL }}
password: ${{ secrets.CAPTAIN_SERVER_PASSWORD }}
keep: (github.event_name == 'pull_request' && github.event.action == 'closed') != true
20 changes: 20 additions & 0 deletions .github/workflows/pr_close.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Clean up

on:
pull_request:
types: [ closed ]
branches: ["none"]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v3

- name: Deploy caprover
uses: josedev-union/caprover-compose-action@support-env
with:
server: ${{ secrets.CAPTAIN_SERVER_URL }}
password: ${{ secrets.CAPTAIN_SERVER_PASSWORD }}
keep: false

0 comments on commit 8c8ea0d

Please sign in to comment.