The root cause of the bug was the GHA ignores an exit 0 as an early exit. This PR changes the exit code to 2 in the early exit case, and adds output that can be checked in the if-failed job to skip creating an issue if the "failure" is just an early exit.
Update: This PR splits the sync step into two:
first the diff-main-prod step checks whether any files changed other than snapshot or timestamp, then
the sync step executes conditionally based on whether the diff-main-prod step output an abort=true
Fixes #1178
The root cause of the bug was the GHA ignores an
exit 0
as an early exit.This PR changes the exit code to 2 in the early exit case, and adds output that can be checked in theif-failed
job to skip creating an issue if the "failure" is just an early exit.Update: This PR splits the
sync
step into two:diff-main-prod
step checks whether any files changed other than snapshot or timestamp, thensync
step executes conditionally based on whether thediff-main-prod
step output anabort=true