From fcd212b2ccc99b056693254d351b622d87fc0dc3 Mon Sep 17 00:00:00 2001 From: ricardoleal20 Date: Sun, 28 Apr 2024 17:46:25 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20CI:=20Update=20logic=20of=20the?= =?UTF-8?q?=20workflow=20to=20open=20pull=20request?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/utilities/open_pr.py | 2 +- .github/workflows/open_pull_request.yml | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/utilities/open_pr.py b/.github/utilities/open_pr.py index 149ac25..35d3beb 100644 --- a/.github/utilities/open_pr.py +++ b/.github/utilities/open_pr.py @@ -65,7 +65,7 @@ def apply_changesets(token: str, repo: str, branch: str) -> None: base_tree = git_repo.get_git_tree(sha=head_sha) tree = git_repo.create_git_tree(changed_files, base_tree) # Apply the commit for the new bump - bump_commit_message = "🔖 Tag: Bump new project version using Sempyver" + bump_commit_message = "🔖 PR: Create Pull Request" # Create the git commit applying the Changesets commit = git_repo.create_git_commit( message=bump_commit_message, diff --git a/.github/workflows/open_pull_request.yml b/.github/workflows/open_pull_request.yml index c664d26..f052599 100644 --- a/.github/workflows/open_pull_request.yml +++ b/.github/workflows/open_pull_request.yml @@ -41,10 +41,6 @@ jobs: poetry run pip install maturin poetry run maturin develop - - name: Perform changeset changes - run: | - poetry run sempyver bump - - name: Run Python script for open the new branch and the PR 🖥️ run: poetry run python .github/utilities/open_pr.py env: @@ -52,10 +48,11 @@ jobs: BRANCH_NAME: ${{ github.ref }} REPO_NAME: ${{ github.repository }} - - name: Add changed files with Git 🔍 + - name: Perform changeset changes and add them with Git 🔍 run: | git pull git checkout bump-new-version + poetry run sempyver bump git pull origin git add --all git commit -m "🔖 Tag: Bump new project version using Sempyver"