Skip to content

Commit 64e5efe

Browse files
authored
Use 'tr' instead of 'node' for string lowercase operation (#1513)
1 parent 6626a91 commit 64e5efe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/stage.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,11 @@ jobs:
8080
password: ${{ secrets.GITHUB_TOKEN }}
8181
registry: ghcr.io
8282

83+
# Image repository names must be lowercase, so get lowercase repo owner for ghcr.io
84+
# See https://github.com/orgs/community/discussions/27086.
8385
- name: Lowercase github owner
8486
run: |
85-
echo "OWNER=$(echo 'console.log("${{ github.repository_owner }}".toLowerCase())' | node -)" >> $GITHUB_ENV
87+
echo "OWNER=$(echo $GITHUB_REPOSITORY_OWNER | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
8688
8789
- name: Build container image
8890
run: |

0 commit comments

Comments
 (0)