diff --git a/.github/workflows/autoApproveDependabot.yml b/.github/workflows/autoApproveDependabot.yml deleted file mode 100644 index eda6392b5..000000000 --- a/.github/workflows/autoApproveDependabot.yml +++ /dev/null @@ -1,35 +0,0 @@ -# synced from @nextcloud/android-config - -# SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors -# SPDX-FileCopyrightText: 2023 Álvaro Brey -# 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 }} diff --git a/.github/workflows/autoApproveRenovate.yml b/.github/workflows/renovate-approve-merge.yml similarity index 71% rename from .github/workflows/autoApproveRenovate.yml rename to .github/workflows/renovate-approve-merge.yml index f5e3f0cea..48b98e91a 100644 --- a/.github/workflows/autoApproveRenovate.yml +++ b/.github/workflows/renovate-approve-merge.yml @@ -1,7 +1,10 @@ -# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors -# SPDX-FileCopyrightText: 2023 Álvaro Brey -# SPDX-FileCopyrightText: 2023 Andy Scherzinger -# SPDX-License-Identifier: GPL-3.0-or-later +# This workflow is provided via the organization template repository +# +# https://github.com/nextcloud/.github +# 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 @@ -30,6 +33,12 @@ jobs: contents: write 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 id: branchname with: