File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -13,19 +13,23 @@ inputs:
1313runs :
1414 using : ' composite'
1515 steps :
16- - uses : actions/checkout@v4
17- with :
18- repository : " Adyen/adyen-swift-public-api-diff"
19- ref : " main"
2016 - name : " Run Diff"
2117 run : |
18+ git clone https://github.com/Adyen/adyen-swift-public-api-diff ./tmp-diff-checkout
19+ cd ./tmp-diff-checkout
20+ LATEST_VERSION = $(git describe --abbrev=0 --tags)
21+ cd ..
22+ echo $LATEST_VERSION
23+
2224 NEW=${{ inputs.new }}
2325 OLD=${{ inputs.old }}
2426 PLATFORM=${{ inputs.platform }}
2527 PROJECT_FOLDER=$PWD
2628 echo $PROJECT_FOLDER
2729
28- swift run public-api-diff project --new "$NEW" --old "$OLD" --platform "$PLATFORM" --output "$PROJECT_FOLDER/api_comparison.md" --log-output "$PROJECT_FOLDER/logs.txt"
30+ curl -vLJO -H 'Accept: application/octet-stream' 'https://github.com/Adyen/adyen-swift-public-api-diff/releases/download/$LATEST_VERSION/public-api-diff'
31+
32+ ./public-api-diff project --new "$NEW" --old "$OLD" --platform "$PLATFORM" --output "$PROJECT_FOLDER/api_comparison.md" --log-output "$PROJECT_FOLDER/logs.txt"
2933 cat "$PROJECT_FOLDER/logs.txt"
3034
3135 cat "$PROJECT_FOLDER/api_comparison.md" >> $GITHUB_STEP_SUMMARY
You can’t perform that action at this time.
0 commit comments