We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6c390d commit 27963e4Copy full SHA for 27963e4
.github/workflows/dst-server.yml
@@ -5,7 +5,7 @@ permissions:
5
6
on:
7
schedule:
8
- - cron: '0 */1 * * *' # run every hour
+ - cron: '0 * * * *' # run every hour
9
workflow_dispatch: # allow to run manually
10
11
env:
@@ -45,8 +45,14 @@ jobs:
45
sort -rn | \
46
head -n 1)
47
48
- if [[ -z "$CUR_VERSION" ]] || ! [[ "$CUR_VERSION" =~ ^[0-9]+$ ]]; then
49
- echo "Error: failed to fetch latest image version: $CUR_VERSION"
+ if [[ -z "$CUR_VERSION" ]]; then
+ echo "No valid version found, proceeding with build"
50
+ echo "should_build=true" >> $GITHUB_OUTPUT
51
+ exit 0
52
+ fi
53
+
54
+ if ! [[ "$CUR_VERSION" =~ ^[0-9]+$ ]]; then
55
+ echo "Error: Invalid version number: $CUR_VERSION"
56
exit 1
57
fi
58
0 commit comments