File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -54,15 +54,20 @@ jobs:
54
54
target : ' ${{ github.event.inputs.old || github.event.pull_request.base.ref }}'
55
55
githubRepo : ' ${{github.server_url}}/${{github.repository}}.git'
56
56
noTargetBranch : ' no target branch'
57
-
57
+
58
+ - name : 🧰 Build Swift CLI
59
+ run : swift build --configuration release
60
+
58
61
- name : 🏃 Run Diff
59
62
run : |
60
- NEW=${{ inputs.new }}
61
- OLD=${{ inputs.old }}
63
+ NEW=${{ env.NEW_VERSION }}
64
+ OLD=${{ env.OLD_VERSION }}
62
65
PLATFORM=${{ inputs.platform }}
63
66
PROJECT_FOLDER=${{ github.workspace }}
64
-
65
- swift run public-api-diff project --new "$NEW" --old "$OLD" --platform "$PLATFORM" --output "$PROJECT_FOLDER/api_comparison.md" --log-output "$PROJECT_FOLDER/logs.txt"
67
+ BINARY_PATH=$(swift build --configuration release --show-bin-path)/public-api-diff"
68
+
69
+ echo "▶️ Running binary at $BINARY_PATH"
70
+ $BINARY_PATH project --new "$NEW" --old "$OLD" --platform "$PLATFORM" --output "$PROJECT_FOLDER/api_comparison.md" --log-output "$PROJECT_FOLDER/logs.txt"
66
71
cat "$PROJECT_FOLDER/logs.txt"
67
72
68
73
if [[ ${{ env.HEAD_GITHUB_REPO != env.BASE_GITHUB_REPO }} ]]; then
74
79
fi
75
80
76
81
cat "$PROJECT_FOLDER/api_comparison.md" >> $GITHUB_STEP_SUMMARY
77
- shell : bash
78
82
79
83
# We only want to comment if we're in a Pull Request and if the Pull Request is not from a forked Repository
80
84
# Forked Repositories have different rights for security reasons and thus it's not possible to comment on PRs without lowering the security
You can’t perform that action at this time.
0 commit comments