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

Commit 0dd115f

Browse files
committed
ci: consider action/keep-integration-stage flag
1 parent f6cace1 commit 0dd115f

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
@@ -103,21 +103,21 @@ jobs:
103103
rolename: '${{ env.ROLE_NAME }}'
104104
- name: Remove DNS record
105105
uses: saitho/delete-dns-record@saitho-patch-1
106-
if: always()
106+
if: always() && !contains( github.event.pull_request.labels.*.name, 'action/keep-integration-stage')
107107
with:
108108
name: "${{ env.DOMAIN_NAME }}.${{ env.DOMAIN_SUFFIX }}"
109109
token: "${{ secrets.CLOUDFLARE_TOKEN }}"
110110
zone: "${{ secrets.CLOUDFLARE_ZONE }}"
111111
- name: Remove DNS record for subdomain
112112
uses: saitho/delete-dns-record@saitho-patch-1
113-
if: always()
113+
if: always() && !contains( github.event.pull_request.labels.*.name, 'action/keep-integration-stage')
114114
with:
115115
name: "sub.${{ env.DOMAIN_NAME }}.${{ env.DOMAIN_SUFFIX }}"
116116
token: "${{ secrets.CLOUDFLARE_TOKEN }}"
117117
zone: "${{ secrets.CLOUDFLARE_ZONE }}"
118118
- name: Remove Hetzner server
119119
uses: saitho/hetzner-cloud-action@v1.1.0
120-
if: always()
120+
if: always() && !contains( github.event.pull_request.labels.*.name, 'action/keep-integration-stage')
121121
with:
122122
action: remove
123123
server_id: "${{ steps.setup_server.outputs.hcloud_server_id }}"

0 commit comments

Comments
 (0)