Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/release_on_push_action/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,15 @@
(curl/get url {:timeout 3000})
(catch clojure.lang.ExceptionInfo e
(let [status (-> e ex-data :status)]
(if (some? status)
(if (= status 403)
(do
(println "::error::Subscription is not valid. Reach out to support@stepsecurity.io")
(System/exit 1))
(println "INFO: Timeout or API not reachable. Continuing to next step."))))
(catch Exception e
(catch Exception _
;; handle unexpected error types (network issues, DNS, etc.)
(println "INFO: Unexpected error in subscription check. Continuing.")
(println (.getMessage e))))))
(println "INFO: Timeout or API not reachable. Continuing to next step.")))))


(defn -main [& args]
(let [_ (println "Starting process...")
Expand Down
Loading