Skip to content

Commit 2207791

Browse files
committed
test
1 parent 8838d74 commit 2207791

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/megalinter.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,16 @@ jobs:
3232
shell: bash
3333
run: |
3434
if ["${GITHUB_REPOSITORY,,}" = "novonordisk-opensource/r.workflows"]; then
35-
workflow_branch="${GITHUB_REF_NAME}"
36-
echo $(workflow_branch)
35+
workflow_branch="$GITHUB_REF_NAME"
36+
echo --------------------->
37+
echo $workflow_branch
38+
echo --------------------->
3739
else
3840
workflow_branch="main"
3941
fi
40-
curl --output .mega-linter.yml https://raw.githubusercontent.com/NovoNordisk-OpenSource/r.workflows/${workflow_branch}/.github/linters/.mega-linter.yml
41-
curl --output .lintr https://raw.githubusercontent.com/NovoNordisk-OpenSource/r.workflows/${workflow_branch}/.github/linters/.lintr
42-
curl --output .lycheeignore https://raw.githubusercontent.com/NovoNordisk-OpenSource/r.workflows/${workflow_branch}/.github/linters/.lycheeignore
42+
curl --output .mega-linter.yml https://raw.githubusercontent.com/NovoNordisk-OpenSource/r.workflows/$workflow_branch/.github/linters/.mega-linter.yml
43+
curl --output .lintr https://raw.githubusercontent.com/NovoNordisk-OpenSource/r.workflows/$workflow_branch/.github/linters/.lintr
44+
curl --output .lycheeignore https://raw.githubusercontent.com/NovoNordisk-OpenSource/r.workflows/$workflow_branch/.github/linters/.lycheeignore
4345
if [ -e "inst/WORDLIST" ]; then
4446
curl --output .cspell.json https://raw.githubusercontent.com/NovoNordisk-OpenSource/r.workflows/${workflow_branch}/.github/linters/.cspell-wordlist.json
4547
else

0 commit comments

Comments
 (0)