Skip to content

Commit

Permalink
Merge pull request #6311 from nextcloud/feat/workflow-auto-update-ren…
Browse files Browse the repository at this point in the history
…ovate-approve-merge.yml

chore(CI): Updating renovate-approve-merge.yml workflow from template
  • Loading branch information
juliusknorr authored Sep 2, 2024
2 parents 8ede750 + 9efd8cc commit 4c0f48a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/renovate-approve-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,19 @@ jobs:
contents: write

steps:
- uses: mdecoleman/pr-branch-name@bab4c71506bcd299fb350af63bb8e53f2940a599 # v2.0.0
- name: Disabled on forks
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
run: |
echo 'Can not approve PRs from forks'
exit 1
- uses: mdecoleman/pr-branch-name@55795d86b4566d300d237883103f052125cc7508 # v3.0.0
id: branchname
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

# GitHub actions bot approve
- uses: hmarr/auto-approve-action@v3
- uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4.0.0
if: startsWith(steps.branchname.outputs.branch, 'renovate/')
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 4c0f48a

Please sign in to comment.