update-pending-status-success:
name: Update pending status as 'success'
needs: call-build-workflow
+ # Note: always() is a workaround, see https://github.com/actions/runner/issues/491#issuecomment-850884422
if: |
- always() && # Workaround, see https://github.com/actions/runner/issues/491#issuecomment-850884422
+ always() &&
(github.event_name == 'pull_request') &&
(!contains(needs.*.result, 'cancelled')) &&
(!contains(needs.*.result, 'failure'))
update-pending-status-failure:
name: Update pending status as 'failure'
needs: call-build-workflow
+ # Note: always() is a workaround, see https://github.com/actions/runner/issues/491#issuecomment-850884422
if: |
- always() && # Workaround, see https://github.com/actions/runner/issues/491#issuecomment-850884422
+ always() &&
(github.event_name == 'pull_request') &&
(contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'failure'))
runs-on: ubuntu-latest