File tree Expand file tree Collapse file tree 1 file changed +6
-18
lines changed Expand file tree Collapse file tree 1 file changed +6
-18
lines changed Original file line number Diff line number Diff line change @@ -13,31 +13,19 @@ inputs:
1313runs :
1414 using : ' composite'
1515 steps :
16+ - uses : actions/checkout@v4
17+ with :
18+ repository : " Adyen/adyen-swift-public-api-diff"
19+ ref : " 0.3.0"
1620 - name : " Run Diff"
1721 run : |
18- # Checkout the repository to get the latest tag
19- git clone https://github.com/Adyen/adyen-swift-public-api-diff ./tmp-diff-checkout
20- cd ./tmp-diff-checkout
21- LATEST_VERSION=$(git describe --abbrev=0 --tags)
22-
23- # Clean up the tmp directory
24- cd ..
25- rm -rf ./tmp-diff-checkout
26-
2722 NEW=${{ inputs.new }}
2823 OLD=${{ inputs.old }}
2924 PLATFORM=${{ inputs.platform }}
3025 PROJECT_FOLDER=$PWD
26+ echo $PROJECT_FOLDER
3127
32- # Fetching the latest version of the script
33- mkdir working_directory
34- cd ./working_directory
35- 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
38-
39- # Running the script
40- ./public-api-diff project --new "$NEW" --old "$OLD" --platform "$PLATFORM" --output "$PROJECT_FOLDER/api_comparison.md" --log-output "$PROJECT_FOLDER/logs.txt"
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"
4129 cat "$PROJECT_FOLDER/logs.txt"
4230
4331 cat "$PROJECT_FOLDER/api_comparison.md" >> $GITHUB_STEP_SUMMARY
You can’t perform that action at this time.
0 commit comments