Mark GitHub Action as optional

Viewed 945

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?

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
Related