Skip to content

Commit

Permalink
fix: gha can't commit to protected branch
Browse files Browse the repository at this point in the history
  • Loading branch information
sergs-pci committed Apr 16, 2024
1 parent 0abdf17 commit 3071a73
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.PYTHON_VERSION }}
- name: Add and Commit Version
run: |
poetry version ${{ inputs.RELEASE_TAG }}
git add ./pyproject.toml
git config --global user.name "Release Bot"
git config --global user.email "[email protected]"
git commit -m "Change version to ${{ inputs.RELEASE_TAG }}" --allow-empty
git push origin
shell: bash
- run: poetry version ${{ inputs.RELEASE_TAG }}
- run: poetry install
- run: poetry config pypi-token.pypi "${{ secrets.PYPI_TOKEN }}"
- name: Publish package
Expand Down

0 comments on commit 3071a73

Please sign in to comment.