aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/kernel.yml10
-rw-r--r--.github/workflows/tools.yml8
2 files changed, 16 insertions, 2 deletions
diff --git a/.github/workflows/kernel.yml b/.github/workflows/kernel.yml
index 5589610d08..6c8ad68438 100644
--- a/.github/workflows/kernel.yml
+++ b/.github/workflows/kernel.yml
@@ -17,11 +17,19 @@ jobs:
runs-on: ubuntu-latest
outputs:
target: ${{ steps.find_targets.outputs.target }}
+ owner_lc: ${{ steps.lower_owner.outputs.owner_lc }}
steps:
- name: Checkout
uses: actions/checkout@v2
+ - name: Set lower case owner name
+ id: lower_owner
+ run: |
+ OWNER_LC=$(echo "${{ github.repository_owner }}" \
+ | tr '[:upper:]' '[:lower:]')
+ echo "::set-output name=owner_lc::$OWNER_LC"
+
- name: Set targets
id: find_targets
run: |
@@ -53,7 +61,7 @@ jobs:
matrix:
target: ${{fromJson(needs.determine_targets.outputs.target)}}
- container: ghcr.io/${{ github.repository_owner }}/tools:latest
+ container: ghcr.io/${{ needs.determine_targets.outputs.owner_lc }}/tools:latest
permissions:
contents: read
diff --git a/.github/workflows/tools.yml b/.github/workflows/tools.yml
index 54b7a01fe5..573bb468b9 100644
--- a/.github/workflows/tools.yml
+++ b/.github/workflows/tools.yml
@@ -167,6 +167,12 @@ jobs:
packages: write
steps:
+ - name: Set lower case owner name
+ env:
+ OWNER: ${{ github.repository_owner }}
+ run: |
+ echo "OWNER_LC=${OWNER,,}" >> "$GITHUB_ENV"
+
- name: Checkout
uses: actions/checkout@v2
with:
@@ -190,5 +196,5 @@ jobs:
with:
context: openwrt
push: true
- tags: ghcr.io/${{ github.repository_owner }}/tools:latest
+ tags: ghcr.io/${{ env.OWNER_LC }}/tools:latest
file: openwrt/.github/workflows/Dockerfile.tools