Skip to content

Commit

Permalink
feat: signed commit when renaming upstream module
Browse files Browse the repository at this point in the history
  • Loading branch information
ARR4N committed Oct 15, 2024
1 parent 21122c0 commit 3e59940
Showing 1 changed file with 24 additions and 18 deletions.
42 changes: 24 additions & 18 deletions .github/workflows/rename-module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,29 +44,35 @@ jobs:
xargs grep -In github.com/ethereum/go-ethereum | \
grep -v "https://github.com/ethereum/go-ethereum"
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21.4
# - name: Set up Go
# uses: actions/setup-go@v5
# with:
# go-version: 1.21.4

# - name: Smoke tests
# # `go list` shows us the module name and grep will non-zero exit on mismatch
# # `go build` is a rudimentary but broad test of correctness
# # The explicitly tested packages are edge cases:
# # - bind generates tests and a go.mod on the fly
# # - rlpgen has testdata with imports that need updating
# run: |
# go list . | grep ava-labs/libevm;
# go build ./...;
# go test ./accounts/abi/bind ./rlp/rlpgen

- name: Smoke tests
# `go list` shows us the module name and grep will non-zero exit on mismatch
# `go build` is a rudimentary but broad test of correctness
# The explicitly tested packages are edge cases:
# - bind generates tests and a go.mod on the fly
# - rlpgen has testdata with imports that need updating
- name: Create new branch
run: |
go list . | grep ava-labs/libevm;
go build ./...;
go test ./accounts/abi/bind ./rlp/rlpgen
git checkout -b "${{ env.output_branch }}";
git push origin "${{ env.output_branch }}";
- name: Commit to new branch
uses: devops-infra/action-commit-push@8bc2ff9f9de7aa2a7581fc7e5b6401c04cab54c7
uses: planetscale/[email protected]
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
Expand Down

0 comments on commit 3e59940

Please sign in to comment.