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>
This commit is contained in:
committed by
Christian Marangi
parent
f1b7e1434f
commit
c27b439564
8
.github/workflows/tools.yml
vendored
8
.github/workflows/tools.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user