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 7a9823c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Go

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# push:
# branches: [ main ]
# pull_request:
# branches: [ main ]
workflow_dispatch:

jobs:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: golangci-lint

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# push:
# branches: [ main ]
# pull_request:
# branches: [ main ]
workflow_dispatch:

permissions:
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/rename-module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
# However, they MUST be disabled again before merging otherwise *all* PRs will
# run this.
#
# pull_request:
# branches: [ main ]
pull_request: # DO NOT MERGE
branches: [ main ]
workflow_dispatch:
inputs:
source_commit:
Expand Down Expand Up @@ -61,12 +61,13 @@ jobs:
go test ./accounts/abi/bind ./rlp/rlpgen
- 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 7a9823c

Please sign in to comment.