From c109744a8ee8b978cbcf41e7aaeaac9ec5e62cf9 Mon Sep 17 00:00:00 2001 From: "Edgar R. M" Date: Mon, 24 Apr 2023 18:29:12 -0600 Subject: [PATCH] ci: Fix file permissions to create PR in version bump workflow (#1636) * Test Commitizen 3 * Fix permissions before pushing * Use `main` branch of cz plugin --- .github/workflows/version_bump.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/version_bump.yml b/.github/workflows/version_bump.yml index 45743fa3a..9b752cc44 100644 --- a/.github/workflows/version_bump.yml +++ b/.github/workflows/version_bump.yml @@ -39,10 +39,6 @@ jobs: with: fetch-depth: 0 - - name: Set repo file permissions - run: | - sudo chown -R $USER:$USER .git/objects - - name: Set up Python uses: actions/setup-python@v4.6.0 with: @@ -73,6 +69,10 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Set repo file permissions + run: | + sudo chown -R $USER:$USER .git/objects + - name: Create Pull Request uses: peter-evans/create-pull-request@v5 id: create-pull-request