File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,12 @@ name: Rename Go module
22
33on :
44 workflow_dispatch :
5+ inputs :
6+ source_commit :
7+ description : " Upstream commit on which to base module renaming"
8+ required : true
9+ type : string
10+ default : " 2bd6bd01d2e8561dd7fc21b631f4a34ac16627a1"
511
612jobs :
713 rename-module :
1117 with :
1218 fetch-depth : 0 # everything
1319
14- - name : Find base geth commit hash
15- id : geth-commit
16- run : echo "hash=$(.github/workflows/scripts/geth-commit.sh)" >> "$GITHUB_OUTPUT"
17-
1820 - name : Set variables
1921 id : vars
2022 # Including hashes of both the source commit and the workflow file makes
@@ -23,11 +25,11 @@ jobs:
2325 WORKFLOW_HASH : ${{ hashFiles('.github/workflows/rename-module.yml') }}
2426 run : |
2527 echo "WORKFLOW_HASH=${WORKFLOW_HASH}" >> "$GITHUB_OUTPUT";
26- echo "DEST_BRANCH=auto-rename-module_source-${{ steps.geth-commit.outputs.hash }}_workflow-${WORKFLOW_HASH}-${{ github.ref_name }}" \
28+ echo "DEST_BRANCH=auto-rename-module_source-${{ inputs.source_commit }}_workflow-${WORKFLOW_HASH}-${{ github.ref_name }}" \
2729 >> "$GITHUB_OUTPUT";
2830
2931 - name : Check out source commit
30- run : git checkout ${{ steps.geth-commit.outputs.hash }}
32+ run : git checkout ${{ inputs.source_commit }}
3133
3234 - name : Globally update module name
3335 run : |
You can’t perform that action at this time.
0 commit comments