diff --git a/.github/workflows/outdated.sh b/.github/workflows/outdated.sh index 3d11acf..f452136 100755 --- a/.github/workflows/outdated.sh +++ b/.github/workflows/outdated.sh @@ -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 diff --git a/lib/mix/tasks/certdata.ex b/lib/mix/tasks/certdata.ex index 656ecbd..3b01bf3 100644 --- a/lib/mix/tasks/certdata.ex +++ b/lib/mix/tasks/certdata.ex @@ -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