Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
feat(renovate): use service account to merge renovate automerge prs (…
Browse files Browse the repository at this point in the history
…VF-3507) (#50)

* feat(renovate): use service account to merge renovate automerge prs with bors

* chore: test renovate mereg strategy

* chore: test renovate mereg strategy

* chore: test renovate merge strategy

* chore: test renovate merge strategy

* chore: test renovate merge strategy

* chore: test renovate merge strategy

* chore: pass pr number
  • Loading branch information
Xavientois committed Jun 24, 2022
1 parent 0f0379c commit 637b476
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/renovate-delegate.yaml
@@ -1,17 +1,19 @@
# Delegates reviewer permission to Renovate on its own PRs
name: Renovatebot Bors Delegate
# Merge using service account when renovate automerges
name: Renovatebot Bors Merge

on:
pull_request:
types: [opened]
issue_comment:
types: [created, edited, deleted]

jobs:
bors-delegate:
if: ${{ github.actor == 'renovate[bot]' }}
name: Bors Delegate
service-account-merge:
if: ${{ contains( github.event.comment.body, 'service-account merge') && github.event.issue.pull_request && github.actor == 'renovate[bot]' }}
name: Service Account Merge
runs-on: ubuntu-latest
steps:
- name: Bors Delegate
- name: Merge Comment
uses: thollander/actions-comment-pull-request@v1
with:
message: bors delegate+
GITHUB_TOKEN: ${{ secrets.GH_SA_TOKEN }}
message: bors merge
GITHUB_TOKEN: ${{ secrets.GH_SA_TOKEN }}
pr_number: ${{ github.event.issue.number }}
3 changes: 2 additions & 1 deletion renovate.json
@@ -1,4 +1,5 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["github>voiceflow/renovate-config:integrations"]
"extends": ["github>voiceflow/renovate-config:integrations"],
"automergeComment": "serice-account merge"
}

0 comments on commit 637b476

Please sign in to comment.