build(deps-dev): Bump the vitest group across 1 directory with 3 updates #1391
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Auto Merge | |
# | |
# Automatically merge pull requests after requirements are met. | |
# | |
# References: | |
# | |
# - https://cli.github.com/manual/gh_pr_merge | |
# - https://docs.github.com/actions/learn-github-actions/contexts | |
# - https://docs.github.com/actions/learn-github-actions/expressions | |
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#pull_request | |
# - https://docs.github.com/actions/using-workflows/using-github-cli-in-workflows | |
# - https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions | |
# - https://docs.github.com/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-auto-merge-for-pull-requests-in-your-repository | |
# - https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request | |
# - https://github.com/actions/checkout | |
# - https://github.com/actions/create-github-app-token | |
# - https://github.com/hmarr/debug-action | |
--- | |
name: auto-merge | |
on: pull_request | |
jobs: | |
auto-merge: | |
if: github.event.pull_request.auto_merge == null && !github.event.pull_request.draft | |
runs-on: ubuntu-latest | |
steps: | |
- id: debug | |
name: Print environment variables and event payload | |
uses: hmarr/debug-action@v3.0.0 | |
- id: bot-token | |
name: Get bot token | |
uses: actions/create-github-app-token@v1.11.0 | |
with: | |
app-id: ${{ secrets.BOT_APP_ID }} | |
private-key: ${{ secrets.BOT_PRIVATE_KEY }} | |
- id: checkout | |
name: Checkout ${{ github.head_ref }} | |
uses: actions/checkout@v4.2.2 | |
with: | |
persist-credentials: false | |
ref: ${{ github.head_ref }} | |
token: ${{ steps.bot-token.outputs.token }} | |
- id: enable | |
name: Enable auto-merge | |
env: | |
GITHUB_TOKEN: ${{ steps.bot-token.outputs.token }} | |
run: gh pr merge ${{ github.event.number }} --auto --squash |