File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -111,8 +111,7 @@ jobs:
111111 exit 0
112112 else
113113 assets=$(curl -u "${{ secrets.CR_USER }}:${{ secrets.CR_PAT }}" -sX GET "https://api.github.com/repos/mltframework/shotcut/releases/tags/${EXT_RELEASE}" | jq -r '.assets[].browser_download_url')
114- SHOTCUT_SHORT_VER=$(echo ${EXT_RELEASE} | sed 's|[v.]||g')
115- if grep -q "shotcut-linux-x86_64-${SHOTCUT_SHORT_VER}.txz$" <<< "${assets}"; then
114+ if grep -q "x86_64" | grep -q ".txz" <<< "${assets}"; then
116115 artifacts_found="true"
117116 else
118117 artifacts_found="false"
Original file line number Diff line number Diff line change @@ -31,10 +31,11 @@ RUN \
3131 SHOTCUT_RELEASE=$(curl -sX GET "https://api.github.com/repos/mltframework/shotcut/releases/latest" \
3232 | jq -r .tag_name); \
3333 fi && \
34- SHOTCUT_SHORT_VER=$(echo ${SHOTCUT_RELEASE} | sed 's|[v.]||g' ) && \
35- curl -o \
34+ SHOTCUT_URL=$(curl -sX GET "https://api.github.com/repos/mltframework/shotcut/releases/tags/${SHOTCUT_RELEASE}" | jq -r '.assets[].browser_download_url' \
35+ | grep "x86_64" | grep ".txz" ) && \
36+ curl -fo \
3637 /tmp/shotcut-tarball.txz -L \
37- "https://github.com/mltframework/shotcut/releases/download/${SHOTCUT_RELEASE}/shotcut-linux-x86_64-${SHOTCUT_SHORT_VER}.txz " && \
38+ "${SHOTCUT_URL} " && \
3839 tar xvf /tmp/shotcut-tarball.txz -C \
3940 /app/shotcut --strip-components=2 && \
4041 echo "**** cleanup ****" && \
Original file line number Diff line number Diff line change @@ -8,8 +8,7 @@ release_tag: latest
88ls_branch : main
99external_artifact_check : |
1010 assets=$(curl -u "${{ '{{' }} secrets.CR_USER {{ '}}' }}:${{ '{{' }} secrets.CR_PAT {{ '}}' }}" -sX GET "https://api.github.com/repos/mltframework/shotcut/releases/tags/${EXT_RELEASE}" | jq -r '.assets[].browser_download_url')
11- SHOTCUT_SHORT_VER=$(echo ${EXT_RELEASE} | sed 's|[v.]||g')
12- if grep -q "shotcut-linux-x86_64-${SHOTCUT_SHORT_VER}.txz$" <<< "${assets}"; then
11+ if grep -q "x86_64" | grep -q ".txz" <<< "${assets}"; then
1312 artifacts_found="true"
1413 else
1514 artifacts_found="false"
You can’t perform that action at this time.
0 commit comments