mirror of
https://github.com/BBaoVanC/bbaovanc.com.git
synced 2024-06-02 07:19:23 -05:00
Use the same deployments action for cleanup
This commit is contained in:
parent
463c26a0e0
commit
9690d77b36
9
.github/workflows/pull_request_cleanup.yml
vendored
9
.github/workflows/pull_request_cleanup.yml
vendored
|
@ -20,9 +20,10 @@ jobs:
|
|||
run:
|
||||
ssh -p 2222 droneci@bbaovanc.com rm -r /var/www/demo/pull_request/${{ github.event.number }}/
|
||||
|
||||
- name: Delete deployment
|
||||
uses: strumwolf/delete-deployment-environment@v2
|
||||
- name: Deactivate deployment
|
||||
uses: bobheadxi/deployments@v0.6.0
|
||||
with:
|
||||
step: deactivate-env
|
||||
token: ${{ github.token }}
|
||||
environment: pr-${{ github.event.number }}
|
||||
onlyRemoveDeployments: true
|
||||
env: pr-${{ github.event.number }}
|
||||
desc: Deployment was pruned
|
||||
|
|
Loading…
Reference in New Issue
Block a user