mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-07-17 19:12:52 +01:00
32 lines
872 B
YAML
32 lines
872 B
YAML
name: Automerge Dependabot
|
|
|
|
on:
|
|
pull_request_target:
|
|
types: [opened, reopened]
|
|
branches:
|
|
- dev
|
|
- master
|
|
- V7
|
|
|
|
concurrency:
|
|
group: "dependabot-automerge-${{ github.head_ref || github.run_id }}-${{ github.event_name }}"
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
automerge:
|
|
name: Enable Automerge on Dependabot PRs
|
|
runs-on: ubuntu-latest
|
|
if: github.event.pull_request.user.id == 49699333
|
|
steps:
|
|
- name: Generate App Token
|
|
id: app-token-generation
|
|
uses: actions/create-github-app-token@v1
|
|
with:
|
|
app-id: ${{ secrets.APP_ID }}
|
|
private-key: ${{ secrets.APP_PRIVATE_KEY }}
|
|
|
|
- name: Enable Automerge
|
|
uses: daneden/enable-automerge-action@f8558b65c5b8d8bfb592c4e74e3d491624a38fbd #v1.0.2-ish
|
|
with:
|
|
github-token: ${{ steps.app-token-generation.outputs.token }}
|