From 12aba9062318ab1be875a227ff9b00eaabfc1a7a Mon Sep 17 00:00:00 2001 From: Mark Mercado Date: Tue, 4 Oct 2022 08:12:36 -0400 Subject: [PATCH] Point PR integration tests at PR branch --- .github/workflows/pull-request-integration.yml | 5 +++++ changelogs/fragments/291-pr-integration-tests-branch.yaml | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 changelogs/fragments/291-pr-integration-tests-branch.yaml diff --git a/.github/workflows/pull-request-integration.yml b/.github/workflows/pull-request-integration.yml index c5685e10..5900a102 100644 --- a/.github/workflows/pull-request-integration.yml +++ b/.github/workflows/pull-request-integration.yml @@ -25,6 +25,11 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 + ref: ${{ github.head_ref }} + + - name: show changes files + run: | + git diff --name-only $DEFAULT_BRANCH - name: get changed module_utils id: changed-module-utils diff --git a/changelogs/fragments/291-pr-integration-tests-branch.yaml b/changelogs/fragments/291-pr-integration-tests-branch.yaml new file mode 100644 index 00000000..bd642ec1 --- /dev/null +++ b/changelogs/fragments/291-pr-integration-tests-branch.yaml @@ -0,0 +1,2 @@ +minor_changes: + - integration tests - set pull request integration tests to run against branch instead of last commit (https://github.com/ansible-collections/community.digitalocean/issues/291).