aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/tools.yml
diff options
context:
space:
mode:
authorEdward Chow <equu@openmail.cc>2022-10-03 19:39:58 +0800
committerChristian Marangi <ansuelsmth@gmail.com>2022-12-04 17:36:56 +0100
commitc2df98c49c463f5913299040f1c91d56ecda3010 (patch)
tree0496fa7bcffe62134ddba6a9435dd351ff368675 /.github/workflows/tools.yml
parentdaeb367dc1bf0c14ebbd96b4b55d1adab7befd0b (diff)
downloadupstream-c2df98c49c463f5913299040f1c91d56ecda3010.tar.gz
upstream-c2df98c49c463f5913299040f1c91d56ecda3010.tar.bz2
upstream-c2df98c49c463f5913299040f1c91d56ecda3010.zip
CI: Add workaround for github uppercase usernames
The workflow defined in tools.yml and kernel.yml used to fail on forked repositories of contributers whose github username contains uppercase letters. A workaround mentioned in https://github.com/orgs/community/discussions/27086 and https://stackoverflow.com/questions/70326569/ is applied. Signed-off-by: Edward Chow <equu@openmail.cc> (cherry picked from commit c27b43956407f3adc3cc2693792acd6b40a01877)
Diffstat (limited to '.github/workflows/tools.yml')
-rw-r--r--.github/workflows/tools.yml8
1 files changed, 7 insertions, 1 deletions
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