diff --git a/.github/workflows/rename-module.yml b/.github/workflows/rename-module.yml index b2ccc20714b4..e381a72f2d10 100644 --- a/.github/workflows/rename-module.yml +++ b/.github/workflows/rename-module.yml @@ -60,13 +60,17 @@ jobs: go build ./...; go test ./accounts/abi/bind ./rlp/rlpgen + - name: Create new branch + run: git branch "${{ env.output_branch }}" "${{ github.ref }}" + - name: Commit to new branch - uses: devops-infra/action-commit-push@8bc2ff9f9de7aa2a7581fc7e5b6401c04cab54c7 + uses: planetscale/ghcommit-action@v0.2.0 + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} with: - github_token: ${{ secrets.GITHUB_TOKEN }} - target_branch: ${{ env.output_branch }} - force: true - commit_prefix: "[AUTO] rename Go module + update internal import paths" + commit_message: "[AUTO] rename Go module + update internal import paths" + repo: ${{ github.repository }} + branch: ${{ env.output_branch }} - name: Open PR to "renamed-go-module" iff workflow dispatched on "main" # If we are changing the way in which we manage module renaming then it