From fe08c88c87e55be5659c0e9cd8dba7bf81162003 Mon Sep 17 00:00:00 2001 From: Angus Bayley Date: Fri, 29 Nov 2024 16:15:16 +0000 Subject: [PATCH] old version of turbo-affected --- .github/workflows/build-and-test-pr.yml | 2 +- .github/workflows/turbo-affected-reusable.yml | 16 ++++------------ 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build-and-test-pr.yml b/.github/workflows/build-and-test-pr.yml index 7652397b745..50ea5f95052 100644 --- a/.github/workflows/build-and-test-pr.yml +++ b/.github/workflows/build-and-test-pr.yml @@ -15,7 +15,7 @@ jobs: determine-affected: name: "Turbo Affected" if: ${{!github.event.pull_request.head.repo.fork }} - uses: LedgerHQ/ledger-live/.github/workflows/turbo-affected-reusable.yml@support/turbo-affected-fix-scope-testing-2 + uses: LedgerHQ/ledger-live/.github/workflows/turbo-affected-reusable.yml@support/turbo-affected-fix-scope-testing-3 with: head_branch: ${{ github.event.pull_request.head.ref || github.event.merge_group.head_ref }} base_branch: ${{ github.event.pull_request.base.ref || github.event.merge_group.base_ref }} diff --git a/.github/workflows/turbo-affected-reusable.yml b/.github/workflows/turbo-affected-reusable.yml index 4237ca77200..b13242849e4 100644 --- a/.github/workflows/turbo-affected-reusable.yml +++ b/.github/workflows/turbo-affected-reusable.yml @@ -1,3 +1,5 @@ +OLD + name: Turbo Affected on: @@ -35,19 +37,9 @@ jobs: packages: ${{ steps.affected.outputs.packages }} paths: ${{ steps.affected.outputs.paths }} steps: - - name: Echo head branch and base branch - run: | - echo "Head branch: ${{ inputs.head_branch }}" - echo "Base branch: ${{ inputs.base_branch }}" - - - name: Checkout head branch - uses: actions/checkout@v4 + - uses: actions/checkout@v4 with: - ref: ${{ inputs.head_branch }} - - - name: Fetch base branch - run: | - git fetch origin ${{ inputs.base_branch }}:${{ inputs.base_branch }} --depth=1 + fetch-depth: 0 - uses: actions/github-script@v7 id: clean-refs