GitHub Action: wait-commit-status
Wait for commit status
Introduction
Checks GitHub API for a given commit and look the commit status.
Usage
name: Pull Request
on:
pull_request:
branches: [ 'main' ]
types: [opened, synchronize, reopened, closed, labeled, unlabeled]
jobs:
context:
runs-on: ubuntu-latest
steps:
- name: Wait commit status
uses: cloudposse/github-action-wait-commit-status@main
with:
repository: ${{ github.repository }}
sha: ${{ github.sha }}
status: continuous-delivery/example-app
lookup: "success"
token: ${{ github.token }}
check-timeout: 120
check-retry-count: 5
check-retry-interval: 20