Skip to content

Commit

Permalink
change to other "Update branch" GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
KissPeter committed Sep 26, 2023
1 parent 604ea0e commit 34bec34
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/update-branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,18 @@ name: Update branch
on:
push:
branches:
- main
pull_request:

workflow_dispatch:


permissions: read-all

- 'master'
jobs:
update-branch:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
autoupdate:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: lcdsmao/update-branch@v3
- name: Automatically update PR
uses: adRise/update-pr-branch@VERSION_YOU_WANT_TO_USE
with:
token: ${{ secrets.GITHUB_TOKEN }}

base: 'master'
required_approval_count: 2
require_passed_checks: false
sort: 'created'
direction: 'desc'
require_auto_merge_enabled: true

0 comments on commit 34bec34

Please sign in to comment.