From a40b62a2f91db3db30062acd2b6841c54a7e11ee Mon Sep 17 00:00:00 2001 From: abikouo Date: Wed, 26 Jul 2023 14:48:03 +0200 Subject: [PATCH] add safe to test workflow --- .github/workflows/integration.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 90e9aa66..82a1c2d5 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -1,9 +1,22 @@ name: Integration on: pull_request_target: + types: + - opened + - reopened + - labeled + - unlabeled + - synchronize + branches: + - main + - stable-* jobs: + safe-to-test: + uses: ansible-network/github_actions/.github/workflows/safe-to-test.yml@main test: + needs: + - safe-to-test runs-on: ubuntu-latest env: source: "./source" @@ -16,6 +29,7 @@ jobs: uses: actions/checkout@v3 with: path: ${{ env.source }} + ref: ${{ github.event.pull_request.head.sha }} - name: Build and install collection id: install-collection