Skip to content

Commit 28e3d17

Browse files
committed
fix in workflow
1 parent 6eff1a1 commit 28e3d17

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/docker-build-and-push-cron.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,17 @@ jobs:
4040
- name: Exit if no update available
4141
id: EXIT_ACTION
4242
run: |
43-
if [[ "${{ steps.GET_VERSIONS.outputs.SDK_VERSION }}" == "${{ steps.GET_VERSIONS.outputs.DOCKERHUB_VERSION }}" ]]; then
44-
echo "No update needed"
45-
echo SHOULD_RUN=false >> $GITHUB_OUTPUT
43+
if [[ "${{ steps.GET_VERSIONS.outputs.SDK_VERSION }}" != "" && "${{ steps.GET_VERSIONS.outputs.DOCKERHUB_VERSION }}" != "" ]]; then
44+
if [[ "${{ steps.GET_VERSIONS.outputs.SDK_VERSION }}" == "${{ steps.GET_VERSIONS.outputs.DOCKERHUB_VERSION }}" ]]; then
45+
echo "No update needed"
46+
echo SHOULD_RUN=false >> $GITHUB_OUTPUT
47+
else
48+
echo "Needs updating to @{{ steps.GET_VERSIONS.outputs.SDK_VERSION }}"
49+
echo SHOULD_RUN=true >> $GITHUB_OUTPUT
50+
fi
4651
else
47-
echo "Needs updating to @{{ steps.GET_VERSIONS.outputs.SDK_VERSION }}"
48-
echo SHOULD_RUN=true >> $GITHUB_OUTPUT
52+
echo echo "SDK_VERSION (@{{ steps.GET_VERSIONS.outputs.SDK_VERSION }}) or DOCKERHUB_VERSION (@{{ steps.GET_VERSIONS.outputs.DOCKERHUB_VERSION }}) came up empty"
53+
echo SHOULD_RUN=false >> $GITHUB_OUTPUT
4954
fi
5055
5156
# This one actually builds.

0 commit comments

Comments
 (0)