From 92e11bd9ea1a9555782372cf6aac385692cf854b Mon Sep 17 00:00:00 2001 From: Yuriy Tkach Date: Tue, 5 Dec 2023 18:30:07 +0200 Subject: [PATCH] build: Use personal token for inc version --- .github/workflows/increment-version.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/increment-version.yml b/.github/workflows/increment-version.yml index e2fff8a..b52ddf4 100644 --- a/.github/workflows/increment-version.yml +++ b/.github/workflows/increment-version.yml @@ -8,9 +8,6 @@ on: required: false default: '' -permissions: - contents: write - jobs: version-bump: runs-on: ubuntu-latest @@ -18,7 +15,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.MY_PAT }} - name: Calculate Version id: version-bump @@ -40,4 +37,4 @@ jobs: git config --global user.email 'actions@github.com' git add build.gradle git commit -m "build: Set version to ${{ steps.version-bump.outputs.new_version }}" -m "${{ steps.version-bump.outputs.changelog }}" - git push + git push -f