From c45b78953540998f842bee30620d1970164c6e7d Mon Sep 17 00:00:00 2001 From: grvodolagin Date: Tue, 20 Dec 2022 16:05:15 +0300 Subject: [PATCH] Fix push to git --- .github/workflows/publish.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index ad19382..21488b4 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -70,11 +70,12 @@ jobs: run: | poetry config pypi-token.pypi "${{ secrets.PYPI_PASSWORD }}" make publish - + - name: Git push - uses: github-actions-x/commit@v2.9 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - push-branch: 'main' - commit-message: '[skip ci] Version updated to ${{env.PROJECT_VERSION}}' - files: pyproject.toml + run: | + git remote set-url origin https://${{ secrets.GITHUB_TOKEN }}@github.com/provectus/mlops-utilities.git + git config --global user.name "github-actions" + git add pyproject.toml + git commit -m '[skip ci] Version updated to ${{env.PROJECT_VERSION}}' + git push -u origin HEAD:${{ github.ref }} + \ No newline at end of file