Skip to content

Handle cleanup steps in case of ProviderCommand failure

The following workflow should echo "failure" as the result of the second step if if: always() condition is specified. Currently, the default behavior in case of missing parameters (in this case "path") is sending an error message and stopping the workflow.

Should continue-on-error also apply for "syntactical errors"?

metadata:
  name: foo
jobs:
  yada:
  runs-on: linux
  steps:
  - uses: actions/create-archive
    with:
      patterns: ['*.png']
    id: create_archive
  - run: echo ${{ steps.create_archive.outcome }}
    if: always()
Edited by Maria Einman