create-pending-status:
name: Create pending status
# Run this only for pull requests
- if: (github.event == pull_request)
+ if: (github.event_name == 'pull_request')
runs-on: ubuntu-latest
steps:
needs: call-build-workflow
if: |
always() && # Workaround, see https://github.com/actions/runner/issues/491#issuecomment-850884422
- (github.event == pull_request) &&
+ (github.event_name == 'pull_request') &&
(!contains(needs.*.result, 'cancelled')) &&
(!contains(needs.*.result, 'failure'))
runs-on: ubuntu-latest
needs: call-build-workflow
if: |
always() && # Workaround, see https://github.com/actions/runner/issues/491#issuecomment-850884422
- (github.event == pull_request) &&
+ (github.event_name == 'pull_request') &&
(contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'failure'))
runs-on: ubuntu-latest