continue-on-error
should not return success
in needs_job_result
#1739
Labels
enhancement
New feature or request
It is recommended to add a new feature, where if a step within a job fails, the entire job still appears as green (passed) status, without affecting the actual status. The current
continue-on-error
statement causes the job's actual status to be incorrect, making the${{ failure() }}
statement perpetually false, i.e., always successful, which impacts the true judgment. Soif: ${{ needs.sync.result == 'success' }}
will always works. Sometimes a job is merely intended to fetch and check for updates. If there are no updates, commands like git will return an error. However, if we want to execute another job when there are updates, we need to determine the actual state of that job. But to ensure that the job still returns normal even without updates, we need a command statement that makes the job always appear as true without affecting the job's real execution status.If this is done, not only will sync report an error, but the subsequent three jobs will still execute
or
The text was updated successfully, but these errors were encountered: