Skip to content

Commit 8a05648

Browse files
committed
allow for manual deployments
1 parent 2bb6e4f commit 8a05648

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/clear_cache.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ jobs:
3535
3636
echo "Latest deployment status: $status (created: $created_at, commit: $commit_hash)"
3737
38-
# Check if deployment is from last 10 minutes, is active, and matches our commit
38+
# Check if deployment is from last 10 minutes, is active, and either matches our commit or is null (manual deployments)
3939
if [ "$status" = "ACTIVE" ] && \
4040
[ $(( $(date +%s) - $(date -d "$created_at" +%s) )) -lt 300 ] && \
41-
[ "$commit_hash" = "$CURRENT_COMMIT" ]; then
42-
echo "Found recent successful deployment matching current commit"
41+
( [ "$commit_hash" = "$CURRENT_COMMIT" ] || [ "$commit_hash" = "null" ] ); then
42+
echo "Found recent successful deployment matching our criteria"
4343
echo "status=success" >> $GITHUB_OUTPUT
4444
exit 0
4545
fi

0 commit comments

Comments
 (0)