You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/docker-build-and-push-cron.yaml
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -40,12 +40,17 @@ jobs:
40
40
- name: Exit if no update available
41
41
id: EXIT_ACTION
42
42
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
46
51
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"
0 commit comments