From 14a877bce9069d6123f51056de112ba3abe49e27 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Thu, 22 Dec 2022 18:40:24 -0500 Subject: [PATCH 1/2] do not automerge PRs labeled `dependencies` --- .github/workflows/automerge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml index c91ac7d4..0ba55681 100644 --- a/.github/workflows/automerge.yml +++ b/.github/workflows/automerge.yml @@ -51,7 +51,7 @@ jobs: BASE_BRANCHES: nightly GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }} GITHUB_LOGIN: ${{ secrets.GH_BOT_NAME }} - MERGE_LABELS: "" + MERGE_LABELS: "!dependencies" MERGE_METHOD: "squash" MERGE_COMMIT_MESSAGE: "{pullRequest.title} (#{pullRequest.number})" MERGE_DELETE_BRANCH: true From ed052691d3df86716b1c7600d82e77b72e6a96f3 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Thu, 22 Dec 2022 18:41:42 -0500 Subject: [PATCH 2/2] do not auto rebase PRs labeled `central_dependency` --- .github/workflows/autoupdate.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/autoupdate.yml b/.github/workflows/autoupdate.yml index 4522182f..83afbc3a 100644 --- a/.github/workflows/autoupdate.yml +++ b/.github/workflows/autoupdate.yml @@ -36,11 +36,17 @@ jobs: dependabot-rebase: name: Dependabot Rebase if: >- - startsWith(github.repository, 'LizardByte/') && - contains(github.event.pull_request.labels.*.name, 'central_dependency') == false + startsWith(github.repository, 'LizardByte/') runs-on: ubuntu-latest steps: + - name: check labels + id: label + run: | + echo "central_dep=${{ contains(github.event.pull_request.labels.*.name, 'central_dependency') }}" \ + >> $GITHUB_OUTPUT + - name: rebase + if: ${{ steps.label.outputs.central_dep == false }} uses: "bbeesley/gha-auto-dependabot-rebase@v1.2.0" env: GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }}