Skip to content

Commit 898dabb

Browse files
committed
Leave manual input for rename-module workflow
1 parent 65917f0 commit 898dabb

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/rename-module.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ name: Rename Go module
22

33
on:
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

612
jobs:
713
rename-module:
@@ -11,10 +17,6 @@ jobs:
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: |

0 commit comments

Comments
 (0)