Skip to content
This repository was archived by the owner on May 17, 2022. It is now read-only.

Commit f91e547

Browse files
committed
ci: consider action/keep-integration-stage flag
1 parent ae82d67 commit f91e547

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,21 +101,21 @@ jobs:
101101
rolename: '${{ env.ROLE_NAME }}'
102102
- name: Remove DNS record
103103
uses: saitho/delete-dns-record@saitho-patch-1
104-
if: always()
104+
if: always() && !contains( github.event.pull_request.labels.*.name, 'action/keep-integration-stage')
105105
with:
106106
name: "${{ env.DOMAIN_NAME }}.${{ env.DOMAIN_SUFFIX }}"
107107
token: "${{ secrets.CLOUDFLARE_TOKEN }}"
108108
zone: "${{ secrets.CLOUDFLARE_ZONE }}"
109109
- name: Remove DNS record for subdomain
110110
uses: saitho/delete-dns-record@saitho-patch-1
111-
if: always()
111+
if: always() && !contains( github.event.pull_request.labels.*.name, 'action/keep-integration-stage')
112112
with:
113113
name: "sub.${{ env.DOMAIN_NAME }}.${{ env.DOMAIN_SUFFIX }}"
114114
token: "${{ secrets.CLOUDFLARE_TOKEN }}"
115115
zone: "${{ secrets.CLOUDFLARE_ZONE }}"
116116
- name: Remove Hetzner server
117117
uses: saitho/[email protected]
118-
if: always()
118+
if: always() && !contains( github.event.pull_request.labels.*.name, 'action/keep-integration-stage')
119119
with:
120120
action: remove
121121
server_id: "${{ steps.setup_server.outputs.hcloud_server_id }}"

0 commit comments

Comments
 (0)