I'm adding a GitHub Action to a repo, but it doesn't directly affect my CI/CD build. Is it possible to mark it as optional, so that if it fails, it's not actually blocking my workflow?
You can use the continue-on-error step property.
Script step example:
- name: Test continue-on-error
continue-on-error: true
run: exit 1
Action step example:
- name: My action
continue-on-error: true
uses: owner/action-that-sometimes-fails@v1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With