forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore:
ava-labs/libevm
as module name
- Loading branch information
Showing
1 changed file
with
13 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
name: Rename Go module | ||
|
||
on: | ||
push: | ||
branches: [ libevm ] | ||
pull_request: # DO NOT MERGE WITH ANYTHING OTHER THAN push | ||
branches: [ libevm ] | ||
pull_request: # DO NOT MERGE WITH ANYTHING OTHER THAN workflow_dispatch | ||
branches: [ main ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
@@ -23,9 +21,9 @@ jobs: | |
|
||
- name: Globally update module name | ||
run: | | ||
go mod edit -module github.com/ava-labs/go-ethereum; | ||
go mod edit -module github.com/ava-labs/libevm; | ||
find . -iname '*.go' -o -iname '*.txt' | xargs sed -i -E \ | ||
's|(["`]github\.com/)ethereum/go-ethereum|\1ava-labs/go-ethereum|g'; | ||
's|(["`]github\.com/)ethereum/go-ethereum|\1ava-labs/libevm|g'; | ||
- name: Remnant references | ||
run: | | ||
|
@@ -57,11 +55,12 @@ jobs: | |
force: true | ||
commit_prefix: "[AUTO] rename Go module + update internal import paths" | ||
|
||
- name: Open PR to "renamed-go-module" | ||
uses: devops-infra/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
source_branch: "auto-rename-module-${{ env.source_commit }}" | ||
target_branch: renamed-go-module | ||
title: "[AUTO] Rename upstream Go module at `${{ env.source_commit }}`" | ||
body: "_PR generated by GitHub Action_" | ||
# DO NOT MERGE without re-enabling this. | ||
# - name: Open PR to "renamed-go-module" | ||
# uses: devops-infra/[email protected] | ||
# with: | ||
# github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# source_branch: "auto-rename-module-${{ env.source_commit }}" | ||
# target_branch: renamed-go-module | ||
# title: "[AUTO] Rename upstream Go module at `${{ env.source_commit }}`" | ||
# body: "_PR generated by GitHub Action_" |