Skip to content

Commit

Permalink
👷 CI: Update logic of the workflow to open pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoleal20 committed Apr 28, 2024
1 parent aead761 commit fcd212b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/utilities/open_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/open_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,18 @@ 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:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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"
Expand Down

0 comments on commit fcd212b

Please sign in to comment.