From c471e57a0e2204090fcec23b80199fd2c3dcaedb Mon Sep 17 00:00:00 2001 From: Jesse Wright <63333554+jeswr@users.noreply.github.com> Date: Wed, 18 Dec 2024 22:14:41 +0000 Subject: [PATCH] Update automerge.yml (#1444) --- .github/workflows/automerge.yml | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml index 380f9d70..58dea138 100644 --- a/.github/workflows/automerge.yml +++ b/.github/workflows/automerge.yml @@ -17,32 +17,3 @@ jobs: - run: gh pr merge ${{ github.event.pull_request.html_url }} --auto --squash env: GH_TOKEN: ${{ github.token }} - - automerge_swipl: - name: Enable automerge on swipl-wasm dependabot PRs - runs-on: ubuntu-latest - permissions: - contents: write - pull-requests: write - repository-projects: write - if: github.actor == 'dependabot[bot]' && contains(github.head_ref, 'dependabot/npm_and_yarn/swipl-wasm-') - steps: - - uses: actions/checkout@v4 - - run: | - version=$(echo "$BRANCH_NAME" | grep -oP '(?<=swipl-wasm-)[^/]+') - major=$(echo $version | cut -d. -f1) - minor=$(echo $version | cut -d. -f2) - patch=$(echo $version | cut -d. -f3) - - if [ $major -ne 0 ]; then - commit_message="BREAKING CHANGE: update swipl-wasm to $version\n\nBREAKING CHANGE: This update includes breaking changes." - elif [ $minor -ne 0 ]; then - commit_message="feat: update swipl-wasm to $version" - else - commit_message="fix: update swipl-wasm to $version" - fi - - gh pr merge ${{ github.event.pull_request.html_url }} --auto --squash --subject "$commit_message" - env: - GH_TOKEN: ${{ github.token }} - BRANCH_NAME: ${{ github.head_ref }}