Merge pull request #4131 from nextcloud/repo-sync/android-config/master

🔄 synced file(s) with nextcloud/android-config
This commit is contained in:
Andy Scherzinger 2024-09-02 10:17:57 +02:00 committed by GitHub
commit 014b58321d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 39 deletions

View File

@ -1,35 +0,0 @@
# synced from @nextcloud/android-config
# SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-FileCopyrightText: 2023 Álvaro Brey <alvaro@alvarobrey.com>
# SPDX-License-Identifier: GPL-3.0-or-later
name: Auto approve dependabot
on:
pull_request_target:
branches:
- main
- master
- stable-*
permissions:
contents: read
concurrency:
group: dependabot-approve-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
auto-approve:
name: Auto approve dependabot
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
permissions:
# needed to approve the PR
pull-requests: write
steps:
- uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4.0.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -1,7 +1,10 @@
# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors # This workflow is provided via the organization template repository
# SPDX-FileCopyrightText: 2023 Álvaro Brey <alvaro@alvarobrey.com> #
# SPDX-FileCopyrightText: 2023 Andy Scherzinger <info@andy-scherzinger.de> # https://github.com/nextcloud/.github
# SPDX-License-Identifier: GPL-3.0-or-later # https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
#
# SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: MIT
name: Auto approve renovate PRs name: Auto approve renovate PRs
@ -30,6 +33,12 @@ jobs:
contents: write contents: write
steps: steps:
- 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 - uses: mdecoleman/pr-branch-name@55795d86b4566d300d237883103f052125cc7508 # v3.0.0
id: branchname id: branchname
with: with: