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 @@ -10,13 +10,19 @@ inputs:
1010 old :
1111 description : ' Specify the old version to compare to'
1212 required : true
13+
14+ env :
15+ VERSION_NUMBER : " 0.7.0"
16+ HEAD_GITHUB_REPO : ' ${{github.server_url}}/${{ github.event.pull_request.head.repo.full_name || github.repository}}.git'
17+ BASE_GITHUB_REPO : ' ${{github.server_url}}/${{github.repository}}.git'
18+
1319runs :
1420 using : ' composite'
1521 steps :
1622 - uses : actions/checkout@v4
1723 with :
1824 repository : " Adyen/adyen-swift-public-api-diff"
19- # ref: "0.7.0"
25+ # ref: ${{ env.VERSION_NUMBER }}
2026
2127 - name : 👾 Compute binary path
2228 id : compute-path
2834 uses : actions/cache/restore@v3
2935 with :
3036 path : ${{ env.BINARY_PATH }}
31- key : build-cache-${{ runner.os }}-ENTER_VERSION_NUMBER_HERE
37+ key : build-cache-${{ runner.os }}-${{ env.VERSION_NUMBER }}
3238
3339 - name : 🧰 Build Swift CLI
3440 if : steps.cache-restore.outputs.cache-hit != 'true'
5056 uses : actions/cache/save@v3
5157 with :
5258 path : ${{ env.BINARY_PATH }}
53- key : build-cache-${{ runner.os }}-ENTER_VERSION_NUMBER_HERE
59+ key : build-cache-${{ runner.os }}-${{ env.VERSION_NUMBER }}
5460
5561 - name : 🏃 Run Diff
5662 run : |
6066 BINARY_PATH=${{ env.BINARY_PATH }}
6167 PROJECT_FOLDER=$PWD
6268
63- echo $PROJECT_FOLDER
64-
6569 echo "▶️ Running binary at $BINARY_PATH"
6670 $BINARY_PATH project --new "$NEW" --old "$OLD" --platform "$PLATFORM" --output "$PROJECT_FOLDER/api_comparison.md" --log-output "$PROJECT_FOLDER/logs.txt"
6771 cat "$PROJECT_FOLDER/logs.txt"
You can’t perform that action at this time.
0 commit comments