Skip to content

Commit eec97eb

Browse files
committed
chore: ava-labs/libevm as module name
1 parent 93df6d8 commit eec97eb

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

.github/workflows/rename-module.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
name: Rename Go module
22

33
on:
4-
push:
5-
branches: [ libevm ]
6-
pull_request: # DO NOT MERGE WITH ANYTHING OTHER THAN push
7-
branches: [ libevm ]
4+
pull_request: # DO NOT MERGE WITH ANYTHING OTHER THAN workflow_dispatch
5+
branches: [ main ]
86
workflow_dispatch:
97

108
jobs:
@@ -23,9 +21,9 @@ jobs:
2321

2422
- name: Globally update module name
2523
run: |
26-
go mod edit -module github.com/ava-labs/go-ethereum;
24+
go mod edit -module github.com/ava-labs/libevm;
2725
find . -iname '*.go' -o -iname '*.txt' | xargs sed -i -E \
28-
's|(["`]github\.com/)ethereum/go-ethereum|\1ava-labs/go-ethereum|g';
26+
's|(["`]github\.com/)ethereum/go-ethereum|\1ava-labs/libevm|g';
2927
3028
- name: Remnant references
3129
run: |
@@ -57,11 +55,12 @@ jobs:
5755
force: true
5856
commit_prefix: "[AUTO] rename Go module + update internal import paths"
5957

60-
- name: Open PR to "renamed-go-module"
61-
uses: devops-infra/[email protected]
62-
with:
63-
github_token: ${{ secrets.GITHUB_TOKEN }}
64-
source_branch: "auto-rename-module-${{ env.source_commit }}"
65-
target_branch: renamed-go-module
66-
title: "[AUTO] Rename upstream Go module at `${{ env.source_commit }}`"
67-
body: "_PR generated by GitHub Action_"
58+
# DO NOT MERGE without re-enabling this.
59+
# - name: Open PR to "renamed-go-module"
60+
# uses: devops-infra/[email protected]
61+
# with:
62+
# github_token: ${{ secrets.GITHUB_TOKEN }}
63+
# source_branch: "auto-rename-module-${{ env.source_commit }}"
64+
# target_branch: renamed-go-module
65+
# title: "[AUTO] Rename upstream Go module at `${{ env.source_commit }}`"
66+
# body: "_PR generated by GitHub Action_"

0 commit comments

Comments
 (0)