From cf5e0374b602ee40cbf9fde16f78e9b919f8ef2c Mon Sep 17 00:00:00 2001 From: Pavel Boldyrev <627562+bpg@users.noreply.github.com> Date: Mon, 4 Mar 2024 20:07:17 -0500 Subject: [PATCH] misc(ci): fix acceptance test dispatch Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com> --- .github/workflows/test.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c244e17e..d3678a87 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -77,12 +77,26 @@ jobs: run: make docs && git diff --exit-code testacc: - if: "!contains(github.head_ref, 'renovate/') && !contains(github.head_ref, 'release-please')" + if: "!contains(github.head_ref, 'renovate/') && !contains(github.head_ref, 'release-please') && github.repository == 'bpg/terraform-provider-proxmox'" name: Dispatch Acceptance Tests needs: build runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 1 + + - name: Filter paths + uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 + id: filter + with: + filters: | + go: + - '**/*.go' + - name: Invoke acceptance tests workflow + if: steps.filter.outputs.go == 'true' uses: benc-uk/workflow-dispatch@v1 with: workflow: testacc.yml