Skip to content

[D2AI] Build Update #62

[D2AI] Build Update

[D2AI] Build Update #62

Workflow file for this run

name: Auto-merge
on:
pull_request_target:
permissions:
contents: write
pull-requests: write
jobs:
auto-merge:
runs-on: ubuntu-latest
timeout-minutes: 10
if: github.actor == 'd2ai-bot' || github.actor == 'dependabot[bot]'
steps:
- name: Generate token
uses: actions/create-github-app-token@v2
id: app-token
with:
app-id: ${{ secrets.AUTOMERGE_APP_ID }}
private-key: ${{ secrets.AUTOMERGE_PRIVATE_KEY }}
- name: Dependabot metadata
if: github.actor == 'dependabot[bot]'
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: ${{ steps.app-token.outputs.token }}
- name: Enable auto-merge for d2ai PRs
if: github.actor == 'd2ai-bot'
run: gh pr merge --auto --merge "${{ github.event.pull_request.html_url }}"
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
- name: Enable auto-merge for Dependabot PRs
if: github.actor == 'dependabot[bot]' && (steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor')
run: gh pr merge --auto --merge "${{ github.event.pull_request.html_url }}"
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}