Skip to content

Commit

Permalink
Update github-workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
goergisn authored Jan 18, 2025
1 parent 4b5032d commit 8e6879c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions Examples/github-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,22 @@ jobs:
- name: Select latest Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.4'
xcode-version: '16.1'

- name: 🚚 Fetch repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: 👾 Define Diff Versions
run: |
NEW="${{ env.source }}~${{ env.githubRepo }}"
NEW="${{ env.source }}~${{ env.headGithubRepo }}"
OLD="${{ env.target }}~${{ env.baseGithubRepo }}"
# Release branches get compared to the last tag instead of the target branch
if [[ '${{ github.head_ref || env.noTargetBranch }}' == release/* ]]
if [[ '${{ env.targetBranchName || env.noTargetBranch }}' == release/* ]]
then
LATEST_TAG=$(git describe --tags --abbrev=0)
OLD="$LATEST_TAG~${{ env.githubRepo }}"
else
OLD="${{ env.target }}~${{ env.githubRepo }}"
OLD="$LATEST_TAG~${{ env.baseGithubRepo }}"
fi
# Providing the output to the environment
Expand All @@ -49,13 +47,15 @@ jobs:
env:
source: '${{ github.event.inputs.new || github.head_ref }}'
target: '${{ github.event.inputs.old || github.event.pull_request.base.ref }}'
githubRepo: '${{github.server_url}}/${{github.repository}}.git'
headGithubRepo: '${{github.server_url}}/${{ github.event.pull_request.head.repo.full_name || github.repository}}.git'
baseGithubRepo: '${{github.server_url}}/${{github.repository}}.git'
noTargetBranch: 'no target branch'
targetBranchName: '${{ github.head_ref }}'

# The github action automatically posts on a PR
# The github action automatically posts on a PR (if it's not a fork-PR)
# and/or outputs the diff to the $GITHUB_STEP_SUMMARY
- name: 🔍 Detect Changes
uses: Adyen/adyen-swift-public-api-diff@0.4.0
uses: Adyen/adyen-swift-public-api-diff@0.8.0
with:
platform: "iOS"
new: ${{ env.NEW_VERSION }}
Expand Down

0 comments on commit 8e6879c

Please sign in to comment.