Given pseudo steps like this:
- name: Pull docker image if available run: | docker pull A:TAG - name: ... else build and push Docker image if: failure() run: | docker build --tag A:B . docker push A:B
How do I succeed the overall job?
If I set continue-on-error for the first step the if: failure() will not trigger.
Without succeding this job I can not run other jobs with needs: