chore: modify test action
[skip ci]
This commit is contained in:
parent
e2d1d4dc91
commit
ab6e2068c4
2 changed files with 21 additions and 66 deletions
4
.github/workflows/tf-acc-test.yaml
vendored
4
.github/workflows/tf-acc-test.yaml
vendored
|
|
@ -43,6 +43,7 @@ jobs:
|
|||
|
||||
- name: Run Test (workflow dispatch)
|
||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
||||
id: manual_run
|
||||
uses: ./.github/actions/acc_test
|
||||
with:
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
|
|
@ -59,6 +60,7 @@ jobs:
|
|||
|
||||
- name: Run Test (automatic)
|
||||
if: ${{ github.event_name != 'workflow_dispatch' }}
|
||||
id: automatic_run
|
||||
uses: ./.github/actions/acc_test
|
||||
with:
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
|
|
@ -78,6 +80,6 @@ jobs:
|
|||
title: Terraform Acceptance Tests finished
|
||||
event_title: ${{ github.event.type }}
|
||||
event_author: ${{ github.event.actor.login }}
|
||||
event_body: 'No event body.'
|
||||
event_body: "${{ steps.automatic_run.outputs.result || steps.manual_run.outputs.result }}"
|
||||
event_number: ${{ github.event.id }}
|
||||
event_url: "https://tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview/actions/runs/${{ github.run_id }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue