From 8d14897c68e7198371c44ab3ca0879225a0eb490 Mon Sep 17 00:00:00 2001 From: Alex Guretzki Date: Mon, 18 Nov 2024 15:13:08 +0100 Subject: [PATCH 1/3] use the latest diff tool version --- .github/workflows/detect-api-changes.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/detect-api-changes.yml b/.github/workflows/detect-api-changes.yml index c882135..7dd4086 100644 --- a/.github/workflows/detect-api-changes.yml +++ b/.github/workflows/detect-api-changes.yml @@ -56,7 +56,7 @@ jobs: noTargetBranch: 'no target branch' - name: 🔍 Detect Changes - uses: Adyen/adyen-swift-public-api-diff@checkout-action + uses: Adyen/adyen-swift-public-api-diff@${{ github.ref_name }} id: public_api_diff with: platform: "macOS" From 944ca3f688eb6d272bc1a3bb9793a8aa799fce04 Mon Sep 17 00:00:00 2001 From: Alex Guretzki Date: Mon, 18 Nov 2024 15:17:06 +0100 Subject: [PATCH 2/3] trying again --- .github/workflows/detect-api-changes.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/detect-api-changes.yml b/.github/workflows/detect-api-changes.yml index 7dd4086..e6bb584 100644 --- a/.github/workflows/detect-api-changes.yml +++ b/.github/workflows/detect-api-changes.yml @@ -11,7 +11,10 @@ on: old: description: 'Branch/tag of the old/comparison version' required: true - + +env: + BRANCH_NAME: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref_name }} + jobs: build: runs-on: macos-14 # Apple Silicon Runner @@ -56,7 +59,7 @@ jobs: noTargetBranch: 'no target branch' - name: 🔍 Detect Changes - uses: Adyen/adyen-swift-public-api-diff@${{ github.ref_name }} + uses: Adyen/adyen-swift-public-api-diff@${{ env.BRANCH_NAME }} id: public_api_diff with: platform: "macOS" From 7f2729acd600da99c5fe91b2d85439535b436d85 Mon Sep 17 00:00:00 2001 From: Alex Guretzki Date: Mon, 18 Nov 2024 16:20:01 +0100 Subject: [PATCH 3/3] trying action at root --- .github/workflows/detect-api-changes.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/detect-api-changes.yml b/.github/workflows/detect-api-changes.yml index e6bb584..3e1b329 100644 --- a/.github/workflows/detect-api-changes.yml +++ b/.github/workflows/detect-api-changes.yml @@ -12,9 +12,6 @@ on: description: 'Branch/tag of the old/comparison version' required: true -env: - BRANCH_NAME: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref_name }} - jobs: build: runs-on: macos-14 # Apple Silicon Runner @@ -59,7 +56,7 @@ jobs: noTargetBranch: 'no target branch' - name: 🔍 Detect Changes - uses: Adyen/adyen-swift-public-api-diff@${{ env.BRANCH_NAME }} + uses: ./ id: public_api_diff with: platform: "macOS"