Add feature to merge .bib files into current bib #18034
Workflow file for this run
This file contains hidden or 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
name: Auto Merge | |
on: [pull_request_target, workflow_dispatch] | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
automerge: | |
runs-on: ubuntu-latest | |
# Run only if PR is inside JabRef's main repository and created by dependabot or by an update workflow | |
if: > | |
(github.repository == 'JabRef/jabref') && | |
( | |
(github.actor == 'renovate-bot' && startsWith(github.event.pull_request.title, 'chore(deps):')) || | |
( | |
(github.event.pull_request.head.repo.full_name == 'JabRef/jabref') && | |
( | |
(github.actor == 'dependabot[bot]') || | |
( | |
startsWith(github.event.pull_request.title, '[Bot] ') || | |
startsWith(github.event.pull_request.title, 'Bump ') || | |
startsWith(github.event.pull_request.title, 'New Crowdin updates') || | |
startsWith(github.event.pull_request.title, 'Update Gradle Wrapper from') | |
) | |
) | |
) | |
) | |
steps: | |
- name: Approve PR | |
run: gh pr review --approve "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GH_TOKEN: ${{secrets.GH_TOKEN_JABREF_MACHINE_PR_APPROVE}} | |
- name: Merge PR | |
run: gh pr merge --auto --squash "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GH_TOKEN: ${{secrets.GH_TOKEN_UPDATE_GRADLE_WRAPPER}} |