mirror of
https://github.com/Crocmagnon/checkout.git
synced 2024-11-25 17:48:03 +01:00
f0b5306ab3
Bumps [tibdex/github-app-token](https://github.com/tibdex/github-app-token) from 1 to 2. - [Release notes](https://github.com/tibdex/github-app-token/releases) - [Commits](https://github.com/tibdex/github-app-token/compare/v1...v2) --- updated-dependencies: - dependency-name: tibdex/github-app-token dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
38 lines
1 KiB
YAML
38 lines
1 KiB
YAML
name: Test & auto merge
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
tests:
|
|
uses: ./.github/workflows/test.yaml
|
|
auto_merge:
|
|
name: Auto merge
|
|
runs-on: ubuntu-latest
|
|
needs: tests
|
|
permissions:
|
|
pull-requests: write
|
|
contents: write
|
|
if: >-
|
|
github.event.pull_request
|
|
&& github.event.pull_request.merged == false
|
|
&& (
|
|
github.event.pull_request.user.login == 'crocmagnon-pr[bot]'
|
|
|| github.event.pull_request.user.login == 'pre-commit-ci[bot]'
|
|
|| github.event.pull_request.user.login == 'dependabot[bot]'
|
|
)
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Generate token
|
|
uses: tibdex/github-app-token@v2
|
|
id: generate-token
|
|
with:
|
|
app_id: ${{ secrets.PR_APP_ID }}
|
|
private_key: ${{ secrets.PR_APP_PRIVATE_KEY }}
|
|
- name: Auto merge
|
|
run: GITHUB_TOKEN=${{ steps.generate-token.outputs.token }} gh pr merge ${{github.event.pull_request.number}} --delete-branch --rebase
|