We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bb6e4f commit 8a05648Copy full SHA for 8a05648
1 file changed
.github/workflows/clear_cache.yml
@@ -35,11 +35,11 @@ jobs:
35
36
echo "Latest deployment status: $status (created: $created_at, commit: $commit_hash)"
37
38
- # Check if deployment is from last 10 minutes, is active, and matches our commit
+ # Check if deployment is from last 10 minutes, is active, and either matches our commit or is null (manual deployments)
39
if [ "$status" = "ACTIVE" ] && \
40
[ $(( $(date +%s) - $(date -d "$created_at" +%s) )) -lt 300 ] && \
41
- [ "$commit_hash" = "$CURRENT_COMMIT" ]; then
42
- echo "Found recent successful deployment matching current commit"
+ ( [ "$commit_hash" = "$CURRENT_COMMIT" ] || [ "$commit_hash" = "null" ] ); then
+ echo "Found recent successful deployment matching our criteria"
43
echo "status=success" >> $GITHUB_OUTPUT
44
exit 0
45
fi
0 commit comments