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

Commit

Permalink
ci: consider action/keep-integration-stage flag
Browse files Browse the repository at this point in the history
  • Loading branch information
saitho committed Mar 12, 2021
1 parent f6cace1 commit 0dd115f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,21 +103,21 @@ jobs:
rolename: '${{ env.ROLE_NAME }}'
- name: Remove DNS record
uses: saitho/delete-dns-record@saitho-patch-1
if: always()
if: always() && !contains( github.event.pull_request.labels.*.name, 'action/keep-integration-stage')
with:
name: "${{ env.DOMAIN_NAME }}.${{ env.DOMAIN_SUFFIX }}"
token: "${{ secrets.CLOUDFLARE_TOKEN }}"
zone: "${{ secrets.CLOUDFLARE_ZONE }}"
- name: Remove DNS record for subdomain
uses: saitho/delete-dns-record@saitho-patch-1
if: always()
if: always() && !contains( github.event.pull_request.labels.*.name, 'action/keep-integration-stage')
with:
name: "sub.${{ env.DOMAIN_NAME }}.${{ env.DOMAIN_SUFFIX }}"
token: "${{ secrets.CLOUDFLARE_TOKEN }}"
zone: "${{ secrets.CLOUDFLARE_ZONE }}"
- name: Remove Hetzner server
uses: saitho/[email protected]
if: always()
if: always() && !contains( github.event.pull_request.labels.*.name, 'action/keep-integration-stage')
with:
action: remove
server_id: "${{ steps.setup_server.outputs.hcloud_server_id }}"
Expand Down

0 comments on commit 0dd115f

Please sign in to comment.