Skip to content

Commit 8e6879c

Browse files
authored
Update github-workflow.yml
1 parent 4b5032d commit 8e6879c

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Examples/github-workflow.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,22 @@ jobs:
2323
- name: Select latest Xcode
2424
uses: maxim-lobanov/setup-xcode@v1
2525
with:
26-
xcode-version: '15.4'
26+
xcode-version: '16.1'
2727

2828
- name: 🚚 Fetch repo
2929
uses: actions/checkout@v4
3030
with:
3131
fetch-depth: 0
32-
32+
3333
- name: 👾 Define Diff Versions
3434
run: |
35-
NEW="${{ env.source }}~${{ env.githubRepo }}"
35+
NEW="${{ env.source }}~${{ env.headGithubRepo }}"
36+
OLD="${{ env.target }}~${{ env.baseGithubRepo }}"
3637
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/* ]]
3939
then
4040
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 }}"
4442
fi
4543
4644
# Providing the output to the environment
@@ -49,13 +47,15 @@ jobs:
4947
env:
5048
source: '${{ github.event.inputs.new || github.head_ref }}'
5149
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'
5352
noTargetBranch: 'no target branch'
53+
targetBranchName: '${{ github.head_ref }}'
5454

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)
5656
# and/or outputs the diff to the $GITHUB_STEP_SUMMARY
5757
- 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
5959
with:
6060
platform: "iOS"
6161
new: ${{ env.NEW_VERSION }}

0 commit comments

Comments
 (0)