Skip to content

Commit def31e7

Browse files
committed
nit
1 parent 4894cb2 commit def31e7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build-deb.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ jobs:
125125
echo "DEB_FILENAME=$DEB_FILENAME" >> $GITHUB_ENV
126126
127127
matrix_key="${{ matrix.ros_distribution }}_${{ matrix.arch }}"
128-
if [ "${{ github.event_name }}" = "release" ]; then
128+
if [ "${{ github.event_name }}" == "release" ]; then
129129
OVERSEA_URL="https://apt.coscene.io/dists/${{ matrix.distro }}/main/binary-${{ matrix.arch }}/${DEB_FILENAME}"
130130
DOMESTIC_URL="https://apt.coscene.cn/dists/${{ matrix.distro }}/main/binary-${{ matrix.arch }}/${DEB_FILENAME}"
131131
echo "matrix_result_${matrix_key}=${{ matrix.arch }},${{ matrix.ros_distribution }},${{ matrix.distro }},overseas,$OVERSEA_URL;${{ matrix.arch }},${{ matrix.ros_distribution }},${{ matrix.distro }},domestic,$DOMESTIC_URL" >> $GITHUB_OUTPUT
@@ -138,6 +138,7 @@ jobs:
138138

139139

140140
- name: Update APT Source (AWS)
141+
if: github.event_name == 'release'
141142
uses: coscene-io/update-apt-source@main
142143
with:
143144
ubuntu_distro: ${{ matrix.distro }}
@@ -209,6 +210,6 @@ jobs:
209210
for url_item in "${URL_ARRAY[@]}"; do
210211
if [ -n "$url_item" ]; then
211212
IFS=',' read -ra ITEM <<< "$url_item"
212-
echo "| ${ITEM[0]} | ${ITEM[1]} | ${ITEM[2]} | [${ITEM[3]}](${ITEM[3]}) |" >> $GITHUB_STEP_SUMMARY
213+
echo "| ${ITEM[0]} | ${ITEM[1]} | ${ITEM[2]} | ${ITEM[3]} | [${ITEM[4]}](${ITEM[4]}) |" >> $GITHUB_STEP_SUMMARY
213214
fi
214215
done

0 commit comments

Comments
 (0)