This commit is contained in:
parent
4262b1aaea
commit
99c9303517
@ -9,7 +9,7 @@ jobs:
|
||||
template-cleanup:
|
||||
name: Template Cleanup
|
||||
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:
|
||||
contents: write
|
||||
steps:
|
||||
@ -26,11 +26,13 @@ jobs:
|
||||
|
||||
# 变量
|
||||
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_OWNER=$(echo $OWNER | sed 's/[^a-zA-Z0-9]//g' | tr '[:upper:]' '[:lower:]')
|
||||
GROUP="cn.sh.ittc.$SAFE_ACTOR.$SAFE_NAME"
|
||||
|
||||
echo $NAME
|
||||
echo $OWNER
|
||||
echo $SAFE_NAME
|
||||
echo SAFE_OWNER
|
||||
echo GROUP
|
||||
|
Loading…
x
Reference in New Issue
Block a user