File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -15,20 +15,28 @@ runs:
1515 steps :
1616 - name : " Run Diff"
1717 run : |
18+ # Checkout the repository to get the latest tag
1819 git clone https://github.com/Adyen/adyen-swift-public-api-diff ./tmp-diff-checkout
1920 cd ./tmp-diff-checkout
2021 LATEST_VERSION=$(git describe --abbrev=0 --tags)
22+
23+ # Clean up the tmp directory
2124 cd ..
22- echo $LATEST_VERSION
23-
25+ rm -rf ./tmp-diff-checkout
26+
2427 NEW=${{ inputs.new }}
2528 OLD=${{ inputs.old }}
2629 PLATFORM=${{ inputs.platform }}
2730 PROJECT_FOLDER=$PWD
28- echo $PROJECT_FOLDER
2931
32+ # Fetching the latest version of the script
33+ mkdir working_directory
34+ cd ./working_directory
3035 curl -vLJO -H 'Accept: application/octet-stream' 'https://github.com/Adyen/adyen-swift-public-api-diff/releases/download/$LATEST_VERSION/public-api-diff'
36+ chmod 755 public-api-diff
37+ xattr -dr com.apple.quarantine public-api-diff
3138
39+ # Running the script
3240 ./public-api-diff project --new "$NEW" --old "$OLD" --platform "$PLATFORM" --output "$PROJECT_FOLDER/api_comparison.md" --log-output "$PROJECT_FOLDER/logs.txt"
3341 cat "$PROJECT_FOLDER/logs.txt"
3442
You can’t perform that action at this time.
0 commit comments