Skip to content

chore(deps): update github/gh-aw-actions action to v0.76.1 (#350) #98

chore(deps): update github/gh-aw-actions action to v0.76.1 (#350)

chore(deps): update github/gh-aw-actions action to v0.76.1 (#350) #98

# Reusable: Release Please — Quiet-Window Auto-Merge

Check failure on line 1 in .github/workflows/_release-please-auto-merge.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/_release-please-auto-merge.yml

Invalid workflow file

(Line: 101, Col: 26): Unexpected symbol: '*'. Located at position 22 within expression: inputs.quiet-minutes * 60
#
# Merges the open release-please Release PR only after it has been idle
# (no new commits) for a configurable number of minutes. Run this on a
# cron schedule so that a burst of near-simultaneous PRs all land in the
# same release rather than triggering back-to-back releases.
#
# Typical caller (add to each repo that opts into quiet-window releases):
#
# name: release-please-auto-merge
# on:
# schedule:
# - cron: '*/15 * * * *'
# workflow_dispatch:
# permissions: {}
# jobs:
# merge:
# permissions:
# contents: write
# pull-requests: write
# uses: JacobPEvans/.github/.github/workflows/_release-please-auto-merge.yml@main
# with:
# quiet-minutes: 10
# secrets:
# GH_APP_PRIVATE_KEY: ${{ secrets.GH_APP_PRIVATE_KEY }}
#
# In the same repo, also set auto-merge: false on the _release-please.yml
# caller so the two workflows don't race.
#
# Variables required:
# GH_APP_ID - GitHub App ID (org/repo configuration variable, not a secret)
#
# Secrets required:
# GH_APP_PRIVATE_KEY - GitHub App private key
#
# Note: GitHub cron scheduling can drift 5-15 min under platform load.
# A quiet-minutes: 10 window may effectively become 10-25 min end-to-end.
name: _release-please-auto-merge
on:
workflow_call:
inputs:
quiet-minutes:
description: Minimum idle minutes before merging the release PR.
type: number
default: 10
merge-method:
description: Merge method passed to `gh pr merge` (squash, merge, rebase).
type: string
default: squash
base-branch:
description: >
Base branch to check for an open release PR. Leave empty (default)
to use the repository's default branch.
type: string
default: ''
runner_label:
description: >-
GitHub Actions runner label. Defaults to ubuntu-latest. Pass a
RunsOn label (see runs-on.com/configuration/job-labels) to opt
the calling repo into self-hosted runners.
type: string
required: false
default: ubuntu-latest
secrets:
GH_APP_PRIVATE_KEY:
required: true
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
auto-merge:
runs-on: ${{ inputs.runner_label }}
permissions:
contents: write
pull-requests: write
steps:
- name: Generate GitHub App Token
id: app-token
uses: actions/create-github-app-token@v3
with:
app-id: ${{ vars.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
permission-contents: write
permission-pull-requests: write
- uses: actions/checkout@v6
with:
repository: JacobPEvans/.github
ref: main
path: .dot-github
- name: Check release PR idle time and enable auto-merge
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
BASE_BRANCH: ${{ inputs.base-branch || github.event.repository.default_branch }}
QUIET_SECONDS: ${{ inputs.quiet-minutes * 60 }}
MERGE_METHOD: ${{ inputs.merge-method }}
run: .dot-github/.github/scripts/release-please-auto-merge.sh