Skip to content

Commit 2561bff

Browse files
authored
Remove local variable when push release changes (#4081)
According to the build: ``` /home/runner/work/_temp/299f43f5-50c0-4023-8dfc-9dfa855b3595.sh: line 2: local: can only be used in a function ``` This removes the use of `local`, which I believe was unnecessary.
1 parent 41ffea1 commit 2561bff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ jobs:
337337
shell: bash
338338
run: |
339339
# Remove the leading "refs/heads/" from the branch name stored in the GITHUB_REF environment variable
340-
local branch_name="${GITHUB_REF##*/}"
340+
branch_name="${GITHUB_REF##*/}"
341341
echo "Fetching and merging latest updates from branch ${branch_name} into HEAD..."
342342
git fetch origin "${branch_name}"
343343
git merge --no-edit "origin/${branch_name}"

0 commit comments

Comments
 (0)