From 59e1f4faf13a362e4a65866420d8f41a66e10023 Mon Sep 17 00:00:00 2001 From: Adoo Date: Mon, 4 Dec 2023 20:25:12 +0800 Subject: [PATCH] =?UTF-8?q?ci(ribir):=20=F0=9F=8E=A1=20fix=20403=20error?= =?UTF-8?q?=20when=20release-bot=20push=20tag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/alpha-release.yml | 4 ++- .mergify.yml | 44 ----------------------------- 2 files changed, 3 insertions(+), 45 deletions(-) delete mode 100644 .mergify.yml diff --git a/.github/workflows/alpha-release.yml b/.github/workflows/alpha-release.yml index fb4e18da2..d4383ad89 100644 --- a/.github/workflows/alpha-release.yml +++ b/.github/workflows/alpha-release.yml @@ -33,9 +33,11 @@ jobs: command: login args: ${{ secrets.CRATE_RELEASE_TOKEN }} - name: git config + if: ${{ env.NEW_COMMIT_COUNT > 0 }} run: | + git remote set-url origin https://${{ secrets.GITHUB_TOKEN }}@github.com/RibirX/Ribir git config --global user.email "Adoo@outlook.com" - git config --global user.name "Adoo" + git config --global user.name "Bot@Ribir" - name: Run cargo release if: ${{ env.NEW_COMMIT_COUNT > 0 }} diff --git a/.mergify.yml b/.mergify.yml deleted file mode 100644 index 31430c641..000000000 --- a/.mergify.yml +++ /dev/null @@ -1,44 +0,0 @@ -pull_request_rules: - - name: Automatic merge on approval - conditions: - - "#approved-reviews-by>=1" - - base=master - - status-success=Check - - status-success=Test Suite (macos-latest) - - status-success=Test Suite (ubuntu-latest) - - status-success=rust code format style check - - status-success=clippy_check - actions: - merge: - method: rebase - - - name: delete head branch after merge - conditions: - - merged - actions: - delete_head_branch: {} - - - name: ask to format code - conditions: - - status-failure=rust code format style check - actions: - comment: - message: |- - This pull request is now not keep same code style as this project. Could you fix it? 🙏 - Just run `cargo fmt` to get more details. - - - name: clippy check hint - conditions: - - status-failure=clippy_check - actions: - comment: - message: |- - Clippy help us to improve our Rust code. Could you fix it? 🙏 - Run `cargo clippy --all-targets --all-features -- -D warnings` to get more details. - - - name: ask to resolve conflict - conditions: - - conflict - actions: - comment: - message: This pull request is now in conflicts. Could you fix it? 🙏