From 86719c076ad8866d91562f54dec4ce4593181ee2 Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Date: Fri, 2 Aug 2024 14:17:41 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20(test-harness.yml):=20add=20supp?= =?UTF-8?q?ort=20for=20dynamically=20setting=20the=20ref=20based=20on=20th?= =?UTF-8?q?e=20pull=20request=20head=20sha=20or=20the=20current=20ref=20to?= =?UTF-8?q?=20prevent=20workflow=20conflicts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test-harness.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test-harness.yml b/.github/workflows/test-harness.yml index 6c5e75d6..25d849ac 100644 --- a/.github/workflows/test-harness.yml +++ b/.github/workflows/test-harness.yml @@ -45,6 +45,8 @@ jobs: working-directory: src/test/resources/terraform steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha || github.ref }} # This action will queue the workflow if another workflow is already running - uses: ahmadnassri/action-workflow-queue@v1