From 01d6f01d563ec7ee7cca89d450c200f0ce424bea Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Tue, 29 Aug 2023 02:47:32 +0100 Subject: [PATCH] probably fixed --- .github/workflows/infra.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/infra.yaml b/.github/workflows/infra.yaml index fbec85c..fa937da 100644 --- a/.github/workflows/infra.yaml +++ b/.github/workflows/infra.yaml @@ -21,9 +21,14 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Fetch target + - name: Fetch PR base + if: github.event.pull_request run: | - git fetch --no-tags --progress --no-recurse-submodules --depth=1 origin ${{ github.event.pull_request.base.ref }} + git fetch --no-tags --progress --no-recurse-submodules --depth=1 origin ${{ github.event.pull_request.base.sha }} + + - name: Test + if: github.event.forkee + run: echo dot! - run: | echo !${{ github.event.pull_request.base.repo }} !${{ github.event.pull_request.base.sha }} @@ -46,7 +51,7 @@ jobs: id: changed-playbooks uses: tj-actions/changed-files@v38 with: - since_last_remote_commit: "true" + base_sha: ${{ github.event.pull_request.base.sha }} files: infra/**-playbook.yaml - name: Check modified playbooks