trails/.github/workflows/automerge.yml
Ullrich Schäfer 18d8870745
Force automerge action to run on Node.js 24
pascalgn/automerge-action@v0.16.4 hasn't released a Node 24 build yet.
Use FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 env var to suppress the warning.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 00:22:18 +01:00

32 lines
754 B
YAML

name: Automerge
on:
check_suite:
types: [completed]
pull_request:
types: [labeled]
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
automerge:
name: Automerge PR
runs-on: ubuntu-latest
if: >
github.event_name == 'pull_request' ||
(github.event_name == 'check_suite' && github.event.check_suite.conclusion == 'success')
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v6
- name: Automerge
uses: pascalgn/automerge-action@v0.16.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MERGE_LABELS: "automerge"
MERGE_METHOD: "merge"
MERGE_DELETE_BRANCH: "true"
UPDATE_METHOD: "rebase"