Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mark GitHub Action as optional

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?

like image 506
Noelle Caldwell Avatar asked Mar 14 '26 11:03

Noelle Caldwell


1 Answers

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
like image 105
peterevans Avatar answered Mar 16 '26 15:03

peterevans



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!