diff --git a/.github/workflows/update-versions.yml b/.github/workflows/update-versions.yml index 575293117..ed34c62bc 100644 --- a/.github/workflows/update-versions.yml +++ b/.github/workflows/update-versions.yml @@ -56,16 +56,14 @@ jobs: echo "changed=true" >> $GITHUB_OUTPUT fi - - name: Commit and push changes + - name: Commit changes if: steps.check-changes.outputs.changed == 'true' env: + GITHUB_TOKEN: ${{ steps.gh-app-token.outputs.token }} HUSKY: 0 # Disable husky hooks for automated commits run: | git config --local user.email "github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" - # Checkout the proper branch (handle both PR and push events) - BRANCH_NAME="${{ github.head_ref || github.ref_name }}" - git checkout "$BRANCH_NAME" git add packages/builder/src/export/versions.ts git commit -m "chore: update export versions" - git push origin "$BRANCH_NAME" + git push