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