Github actions to add a bake time check / finish pull requests that have fully baked
inputs:
delay-hours:
description: How many hours before pull requests have finished baking
default: 24
required: false
ignore-non-push-updates:
description: Controls if the bake timer uses the last update to the PR like approvals or the just the date of the merge commit GitHub creates to calculate the remaining time
default: "true"
required: false
check-name:
description: The name of the check that is used to block baking pull requests, recommend "Baking pull request..."
required: true
on:
pull_request:
types:
- opened
- synchronize
workflow_dispatch:
schedule:
- cron: '0 */1 * * *' # Runs every 1 hour
...
jobs:
baking_pull_request:
name: "Baking pull request..."
runs-on: ubuntu-latest
steps:
- uses: peternied/bake-time@v3.3
with:
check-name: "Baking pull request..."
delay-hours: 48