Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not merge: Diff tool fork #1930

Closed
wants to merge 7 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions .github/workflows/detect_api_changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ jobs:

- name: 👾 Define Diff Versions
run: |
NEW="${{ env.source }}~${{ env.githubRepo }}"
NEW="${{ env.source }}~${{ env.headGithubRepo }}"
if [[ '${{ github.head_ref || env.noTargetBranch }}' == release/* ]]
then
LATEST_TAG=$(git describe --tags --abbrev=0)
OLD="$LATEST_TAG~${{ env.githubRepo }}"
OLD="$LATEST_TAG~${{ env.baseGithubRepo }}"
else
OLD="${{ env.target }}~${{ env.githubRepo }}"
OLD="${{ env.target }}~${{ env.baseGithubRepo }}"
fi

# Providing the output to the environment
Expand All @@ -50,13 +50,19 @@ 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'

- name: 🔍 Detect Changes
uses: Adyen/adyen-swift-public-api-diff@0.5.0
uses: Adyen/adyen-swift-public-api-diff@85da6fad103de1b3c21ed59af0f1be9998f944c7
id: public_api_diff
with:
platform: "iOS"
new: ${{ env.NEW_VERSION }}
old: ${{ env.OLD_VERSION }}

- name: Output Github Step Summary
run: |
echo "Step summary incomming:"
cat $GITHUB_STEP_SUMMARY
Loading