-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 1.11 KB
/
auto-merge.yml
File metadata and controls
28 lines (26 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Auto merge
on:
workflow_call:
secrets:
github-token:
required: false
# Merges with the default GITHUB_TOKEN don't trigger subsequent workflows (push
# events) due to GitHub's anti-recursion policy. Repos that need downstream workflows
# to run after auto-merge (e.g. deploy on push to main) should pass a PAT here.
# Note: `secrets: inherit` won't work for this — the calling workflow must explicitly
# map its repo secret to this input, because no repo secret is literally named
# `github-token`. Example:
# secrets:
# github-token: ${{ secrets.SOFTWAREMILL_CI_PR_TOKEN }}
description: "Token for merging. Use a PAT to trigger subsequent workflows (e.g. deploy). Defaults to GITHUB_TOKEN."
jobs:
auto-merge:
name: Auto merge
runs-on: ubuntu-24.04
steps:
- id: automerge
name: automerge
uses: "pascalgn/automerge-action@7961b8b5eec56cc088c140b56d864285eabd3f67" # v0.16.4
env:
GITHUB_TOKEN: "${{ secrets.github-token || secrets.GITHUB_TOKEN }}"
MERGE_METHOD: "squash"