This commit is contained in:
parent
4262b1aaea
commit
99c9303517
@ -9,7 +9,7 @@ jobs:
|
|||||||
template-cleanup:
|
template-cleanup:
|
||||||
name: Template Cleanup
|
name: Template Cleanup
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event.repository.name != 'zabbix-agent-2-plugin-template'
|
#if: github.event.repository.name != 'zabbix-agent-2-plugin-template'
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
@ -26,11 +26,13 @@ jobs:
|
|||||||
|
|
||||||
# 变量
|
# 变量
|
||||||
NAME="${GITHUB_REPOSITORY##*/}"
|
NAME="${GITHUB_REPOSITORY##*/}"
|
||||||
OWNER=$(echo GITHUB_REPOSITORY_OWNER | tr '[:upper:]' '[:lower:]')
|
OWNER=$(echo $GITHUB_REPOSITORY_OWNER | tr '[:upper:]' '[:lower:]')
|
||||||
SAFE_NAME=$(echo $NAME | sed 's/[^a-zA-Z0-9]//g' | tr '[:upper:]' '[:lower:]')
|
SAFE_NAME=$(echo $NAME | sed 's/[^a-zA-Z0-9]//g' | tr '[:upper:]' '[:lower:]')
|
||||||
SAFE_OWNER=$(echo $OWNER | sed 's/[^a-zA-Z0-9]//g' | tr '[:upper:]' '[:lower:]')
|
SAFE_OWNER=$(echo $OWNER | sed 's/[^a-zA-Z0-9]//g' | tr '[:upper:]' '[:lower:]')
|
||||||
GROUP="cn.sh.ittc.$SAFE_ACTOR.$SAFE_NAME"
|
GROUP="cn.sh.ittc.$SAFE_ACTOR.$SAFE_NAME"
|
||||||
|
|
||||||
|
echo $NAME
|
||||||
|
echo $OWNER
|
||||||
echo $SAFE_NAME
|
echo $SAFE_NAME
|
||||||
echo SAFE_OWNER
|
echo SAFE_OWNER
|
||||||
echo GROUP
|
echo GROUP
|
||||||
|
Loading…
x
Reference in New Issue
Block a user