This commit is contained in:
parent
f2c5cb5f8d
commit
f4c8b5ed21
@ -9,7 +9,7 @@ jobs:
|
||||
template-cleanup:
|
||||
name: Template Cleanup
|
||||
runs-on: ubuntu-latest
|
||||
if: gitea.event.repository.name != 'zabbix-agent-2-plugin-template'
|
||||
if: github.event.repository.name != 'zabbix-agent-2-plugin-template'
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
@ -25,8 +25,8 @@ jobs:
|
||||
export LANG=C
|
||||
|
||||
# 变量
|
||||
NAME="${GITEA_REPOSITORY##*/}"
|
||||
ACTOR=$(echo $GITEA_ACTOR | tr '[:upper:]' '[:lower:]')
|
||||
NAME="${GITHUB_REPOSITORY##*/}"
|
||||
ACTOR=$(echo $GITHUB_ACTOR | tr '[:upper:]' '[:lower:]')
|
||||
SAFE_NAME=$(echo $NAME | sed 's/[^a-zA-Z0-9]//g' | tr '[:upper:]' '[:lower:]')
|
||||
SAFE_ACTOR=$(echo $ACTOR | sed 's/[^a-zA-Z0-9]//g' | tr '[:upper:]' '[:lower:]')
|
||||
echo $NAME
|
||||
@ -47,4 +47,4 @@ jobs:
|
||||
# uses: ad-m/github-push-action@master
|
||||
# with:
|
||||
# branch: main
|
||||
# gitea_token: ${{ secrets.GITEA_TOKEN }}
|
||||
# github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user