chore: modify test action
[skip ci]
This commit is contained in:
parent
2d4e9c723f
commit
5828ce3a77
1 changed files with 15 additions and 0 deletions
15
.github/workflows/clean_up.yaml
vendored
15
.github/workflows/clean_up.yaml
vendored
|
|
@ -47,6 +47,7 @@ jobs:
|
||||||
event_url: "https://tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview/actions/runs/${{ forgejo.run_number }}"
|
event_url: "https://tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview/actions/runs/${{ forgejo.run_number }}"
|
||||||
|
|
||||||
- name: Clean
|
- name: Clean
|
||||||
|
id: clean
|
||||||
uses: ./.github/actions/clean_up
|
uses: ./.github/actions/clean_up
|
||||||
with:
|
with:
|
||||||
project_id: ${{ vars.TF_ACC_PROJECT_ID }}
|
project_id: ${{ vars.TF_ACC_PROJECT_ID }}
|
||||||
|
|
@ -55,3 +56,17 @@ jobs:
|
||||||
service_account_json_content_b64: "${{ secrets.TF_ACC_SERVICE_ACCOUNT_JSON_B64 }}"
|
service_account_json_content_b64: "${{ secrets.TF_ACC_SERVICE_ACCOUNT_JSON_B64 }}"
|
||||||
list_only: ${{ inputs.list_only }}
|
list_only: ${{ inputs.list_only }}
|
||||||
log_level: ${{ inputs.log_level }}
|
log_level: ${{ inputs.log_level }}
|
||||||
|
|
||||||
|
- name: Notify
|
||||||
|
if: always()
|
||||||
|
uses: ./.github/actions/notify
|
||||||
|
with:
|
||||||
|
webhook_url: ${{ secrets.GOOGLE_WEBHOOK_URL }}
|
||||||
|
title: "[END] CLEAN UP pipeline"
|
||||||
|
subtitle: "${{ forgejo.repository }}"
|
||||||
|
event_title: ${{ forgejo.event_name }}
|
||||||
|
event_author: ${{ forgejo.actor }}
|
||||||
|
event_body: "try to remove all resources with prefix ${{ inputs.res_prefix }}"
|
||||||
|
event_number: ${{ forgejo.run_number }}
|
||||||
|
event_url: "https://tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview/actions/runs/${{ forgejo.run_number }}"
|
||||||
|
status: ${{ steps.clean.outcome == 'success' && 'SUCCESS' || 'FAILURE' }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue