Skip to content

Commit bb847b0

Browse files
authored
feat(workflow): add cleanup job for closed PR deployments (#17)
1 parent 4cbcb8e commit bb847b0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Cleanup PR deployment
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
types: [closed]
8+
9+
jobs:
10+
cleanup:
11+
runs-on: self-hosted
12+
steps:
13+
- name: Cleanup PR deployment
14+
run: |
15+
curl "https://api-v2-tst.datanose.nl/gitops-updater?name=workflow-api-pr&secret=${{ secrets.UPDATER_SECRET_DN }}&version=delete&id=${{ github.event.pull_request.number }}"

0 commit comments

Comments
 (0)