|
1 | 1 | name: Rename Go module
|
2 | 2 |
|
3 | 3 | 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 ] |
8 | 6 | workflow_dispatch:
|
9 | 7 |
|
10 | 8 | jobs:
|
|
23 | 21 |
|
24 | 22 | - name: Globally update module name
|
25 | 23 | run: |
|
26 |
| - go mod edit -module github.com/ava-labs/go-ethereum; |
| 24 | + go mod edit -module github.com/ava-labs/libevm; |
27 | 25 | 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'; |
29 | 27 |
|
30 | 28 | - name: Remnant references
|
31 | 29 | run: |
|
@@ -57,11 +55,12 @@ jobs:
|
57 | 55 | force: true
|
58 | 56 | commit_prefix: "[AUTO] rename Go module + update internal import paths"
|
59 | 57 |
|
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