@@ -98,28 +98,44 @@ runs:
98
98
run : |
99
99
mkdir -p ~/bin/
100
100
cd ~/bin/
101
- if [ $COVERAGE_REPORTER_VERSION == "latest" ]
102
- then
103
- asset_path=latest/download
101
+
102
+ if [ "$COVERAGE_REPORTER_VERSION" == "latest" ]; then
103
+ asset_path=" latest/download"
104
104
else
105
105
asset_path="download/${COVERAGE_REPORTER_VERSION}"
106
106
fi
107
+
108
+ # Debugging output to verify asset path
109
+ echo "Using asset path: $asset_path"
110
+
107
111
# Try to download the binary and checksum file
108
112
if ! curl -sLO "https://github.com/coverallsapp/coverage-reporter/releases/${asset_path}/coveralls-linux.tar.gz" ||
109
- ! curl -sLO "https://github.com/coverallsapp/coverage-reporter/releases/${asset_path}/coveralls-checksums.txt"; then
113
+ ! curl -sLO "https://github.com/coverallsapp/coverage-reporter/releases/${asset_path}/coveralls-checksums.txt"; then
110
114
echo "Failed to download coveralls binary or checksum."
111
115
[ "${{ inputs.fail-on-error }}" == "false" ] && exit 0
112
116
exit 1
113
117
fi
118
+
119
+ # List files to ensure they are downloaded
120
+ echo "Downloaded files:"
121
+ ls -la
122
+
114
123
# Verify the downloaded binary
115
124
if ! grep coveralls-linux.tar.gz coveralls-checksums.txt | sha256sum --check; then
116
125
echo "Checksum verification failed."
117
126
[ "${{ inputs.fail-on-error }}" == "false" ] && exit 0
118
127
exit 1
119
128
fi
120
- tar -xzf coveralls-linux.tar.gz
121
- rm coveralls-checksums.txt
122
- echo ~/bin >> $GITHUB_PATH
129
+
130
+ # Extract the tar.gz file
131
+ tar -xzf coveralls-linux.tar.gz
132
+
133
+ # List files again to verify extraction
134
+ echo "Files after extraction:"
135
+ ls -la
136
+
137
+ rm coveralls-checksums.txt
138
+ echo ~/bin >> $GITHUB_PATH
123
139
124
140
- name : Install coveralls reporter (Windows)
125
141
if : startsWith(runner.os, 'Windows')
0 commit comments