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