Shell to lowercase
Build & Push Docker image / build-and-push (push) Failing after 1m57s
ci / build_linux (push) Failing after 1m32s

This commit is contained in:
2025-11-07 21:40:17 +10:30
parent fae1979e04
commit a9184acd23
2 changed files with 19 additions and 7 deletions
+9 -3
View File
@@ -16,9 +16,15 @@ jobs:
steps:
- name: Convert to lowercase
id: github_repository_to_lowercase
uses: step-security/change-string-case-action@v6
with:
inputStr: ${{ github.repository }} # Replace with your variable
run: |
# Grab the value (you can also use `${{ github.ref }}`, `${{ secrets.MY_SECRET }}`, etc.)
raw_value="${{ env.MY_VAR }}"
# Convert to lower case
lower_value=$(echo "$raw_value" | tr '[:upper:]' '[:lower:]')
# Export it to the workflow environment
# echo "MY_LOWER=$lower_value" >> $GITHUB_ENV
# If you want to use it as an output of this step:
echo "lowercase=$lower_value" >> $GITHUB_OUTPUT
# ------------------------------------------------------------------
# 1. Checkout repository
# ------------------------------------------------------------------
+10 -4
View File
@@ -11,12 +11,18 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Convert to lowercase
id: github_repository_to_lowercase
uses: step-security/change-string-case-action@v6
with:
inputStr: ${{ github.repository }} # Replace with your variable
run: |
# Grab the value (you can also use `${{ github.ref }}`, `${{ secrets.MY_SECRET }}`, etc.)
raw_value="${{ env.MY_VAR }}"
# Convert to lower case
lower_value=$(echo "$raw_value" | tr '[:upper:]' '[:lower:]')
# Export it to the workflow environment
# echo "MY_LOWER=$lower_value" >> $GITHUB_ENV
# If you want to use it as an output of this step:
echo "lowercase=$lower_value" >> $GITHUB_OUTPUT
- name: Build image
id: build