ros-industrial / industrial_ci

Easy continuous integration repository for ROS repositories
Apache License 2.0
248 stars 129 forks source link

Provide feedback on outcome of individual steps #753

Closed rhaschke closed 3 years ago

rhaschke commented 3 years ago

To automate various actions in GHA depending on the outcome of steps in industrial_ci, it would be great to have the exit code of individual steps as output feedback.

steps:
  - id: industrial_ci
    uses: ros-industrial/industrial_ci@master
  - name: Upload test artifacts (on test failure)
     uses: actions/upload-artifact@v2
     if: steps.industrial_ci.outputs.run_target_test != 0
     with:
          name: test-results
          path: ${{ env.BASEDIR }}/target_ws/**/test_results/**/*.xml
rhaschke commented 3 years ago

I will provide a PR for this.