From c1d0d6aea1789970ae906f9ee309440b381340d4 Mon Sep 17 00:00:00 2001 From: LDprg <71488985+LDprg@users.noreply.github.com> Date: Fri, 14 Jul 2023 17:22:31 +0200 Subject: [PATCH] Update rust-fmt.yml --- .github/workflows/rust-fmt.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/rust-fmt.yml b/.github/workflows/rust-fmt.yml index f4eb09c..db6b52e 100644 --- a/.github/workflows/rust-fmt.yml +++ b/.github/workflows/rust-fmt.yml @@ -22,8 +22,7 @@ jobs: - name: Formatting Code run: cargo fmt --all --verbose - name: Create Pull Request - uses: repo-sync/pull-request@v2 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - destination_branch: "rewrite" - source_branch: rewrite + - name: pull-request + run: | + gh_pr_up() { gh pr create $* || gh pr edit $* } + gh_pr_up --title "Bot Fix: Formatting" --body "Fix formatting with cargo fmt"