Skip to content

Commit

Permalink
Skip update if check failed (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
vshev4enko authored Sep 23, 2024
1 parent 3fd85ff commit d397a57
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/outdated.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git checkout outdated || git checkout -b outdated

if ! mix certdata --check-outdated; then
mix certdata --check-outdated
if [ $? -eq 100 ]; then
mix certdata

if [[ $(check_pr) == "" ]]; then
Expand Down
4 changes: 3 additions & 1 deletion lib/mix/tasks/certdata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ defmodule Mix.Tasks.Certdata do
new_bundle = read_certificates_set(new_bundle)

if not MapSet.equal?(old_bundle, new_bundle) do
Mix.raise("#{CAStore.file_path()} is outdated. Run \"mix certdata\" to update it.")
Mix.raise("#{CAStore.file_path()} is outdated. Run \"mix certdata\" to update it.",
exit_status: 100
)
end
end

Expand Down

0 comments on commit d397a57

Please sign in to comment.