@@ -23,24 +23,22 @@ jobs:
23
23
- name : Select latest Xcode
24
24
uses : maxim-lobanov/setup-xcode@v1
25
25
with :
26
- xcode-version : ' 15.4 '
26
+ xcode-version : ' 16.1 '
27
27
28
28
- name : 🚚 Fetch repo
29
29
uses : actions/checkout@v4
30
30
with :
31
31
fetch-depth : 0
32
-
32
+
33
33
- name : 👾 Define Diff Versions
34
34
run : |
35
- NEW="${{ env.source }}~${{ env.githubRepo }}"
35
+ NEW="${{ env.source }}~${{ env.headGithubRepo }}"
36
+ OLD="${{ env.target }}~${{ env.baseGithubRepo }}"
36
37
37
- # Release branches get compared to the last tag instead of the target branch
38
- if [[ '${{ github.head_ref || env.noTargetBranch }}' == release/* ]]
38
+ if [[ '${{ env.targetBranchName || env.noTargetBranch }}' == release/* ]]
39
39
then
40
40
LATEST_TAG=$(git describe --tags --abbrev=0)
41
- OLD="$LATEST_TAG~${{ env.githubRepo }}"
42
- else
43
- OLD="${{ env.target }}~${{ env.githubRepo }}"
41
+ OLD="$LATEST_TAG~${{ env.baseGithubRepo }}"
44
42
fi
45
43
46
44
# Providing the output to the environment
@@ -49,13 +47,15 @@ jobs:
49
47
env :
50
48
source : ' ${{ github.event.inputs.new || github.head_ref }}'
51
49
target : ' ${{ github.event.inputs.old || github.event.pull_request.base.ref }}'
52
- githubRepo : ' ${{github.server_url}}/${{github.repository}}.git'
50
+ headGithubRepo : ' ${{github.server_url}}/${{ github.event.pull_request.head.repo.full_name || github.repository}}.git'
51
+ baseGithubRepo : ' ${{github.server_url}}/${{github.repository}}.git'
53
52
noTargetBranch : ' no target branch'
53
+ targetBranchName : ' ${{ github.head_ref }}'
54
54
55
- # The github action automatically posts on a PR
55
+ # The github action automatically posts on a PR (if it's not a fork-PR)
56
56
# and/or outputs the diff to the $GITHUB_STEP_SUMMARY
57
57
- name : 🔍 Detect Changes
58
- uses : Adyen/adyen-swift-public-api-diff@0.4 .0
58
+ uses : Adyen/adyen-swift-public-api-diff@0.8 .0
59
59
with :
60
60
platform : " iOS"
61
61
new : ${{ env.NEW_VERSION }}
0 commit comments